File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- KNOWNBUG
1
+ CORE
2
2
main.cpp
3
3
4
4
^EXIT=0$
Original file line number Diff line number Diff line change 12
12
#include " cpp_typecheck.h"
13
13
14
14
#include < util/arith_tools.h>
15
+ #include < util/c_types.h>
16
+ #include < util/config.h>
15
17
16
18
#include < ansi-c/c_qualifiers.h>
17
- #include < util/c_types.h>
18
19
19
20
#include " cpp_enum_type.h"
20
21
@@ -140,7 +141,9 @@ void cpp_typecheckt::typecheck_enum_type(typet &type)
140
141
throw 0 ;
141
142
}
142
143
}
143
- else if (has_body)
144
+ else if (
145
+ has_body ||
146
+ config.ansi_c .mode == configt::ansi_ct::flavourt::VISUAL_STUDIO)
144
147
{
145
148
std::string pretty_name=
146
149
cpp_scopes.current_scope ().prefix +id2string (base_name);
@@ -200,7 +203,8 @@ void cpp_typecheckt::typecheck_enum_type(typet &type)
200
203
if (new_symbol->type .get_bool (ID_C_class))
201
204
cpp_scopes.go_to (scope_identifier);
202
205
203
- typecheck_enum_body (*new_symbol);
206
+ if (has_body)
207
+ typecheck_enum_body (*new_symbol);
204
208
}
205
209
else
206
210
{
You can’t perform that action at this time.
0 commit comments