Skip to content

Commit

Permalink
C++ operator overload over enum tag types
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 11, 2018
1 parent 774060b commit 2f34833
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion regression/cpp/enum5/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <cassert>
#include <assert.h>

enum IMPH_STATE
{
Expand Down
2 changes: 1 addition & 1 deletion regression/cpp/enum5/test.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KNOWNBUG
CORE
main.cpp

^EXIT=0$
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/cpp_typecheck_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ bool cpp_typecheckt::overloadable(const exprt &expr)

if(t.id()==ID_struct ||
t.id()==ID_union ||
t.id()==ID_c_enum)
t.id()==ID_c_enum || t.id() == ID_c_enum_tag)
return true;
}

Expand Down

0 comments on commit 2f34833

Please sign in to comment.