Skip to content

Commit 2f34833

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

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

regression/cpp/enum5/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <cassert>
1+
#include <assert.h>
22

33
enum IMPH_STATE
44
{

regression/cpp/enum5/test.desc

+1-1
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

+1-1
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)