Skip to content

Commit 3b44df7

Browse files
committed
C++ operator overload over enum tag types
1 parent 774060b commit 3b44df7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

regression/cpp/enum5/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
CORE
22
main.cpp
33

44
^EXIT=0$

src/cpp/cpp_typecheck_expr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ bool cpp_typecheckt::overloadable(const exprt &expr)
433433

434434
if(t.id()==ID_struct ||
435435
t.id()==ID_union ||
436-
t.id()==ID_c_enum)
436+
t.id()==ID_c_enum || t.id() == ID_c_enum_tag)
437437
return true;
438438
}
439439

0 commit comments

Comments
 (0)