File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
regression/systemc/Array2 Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- KNOWNBUG
1+ CORE
22main.cpp
33-DNO_IO -DNO_STRING
44^EXIT=0$
Original file line number Diff line number Diff line change @@ -177,7 +177,12 @@ void cpp_typecheckt::typecheck_member_initializer(codet &code)
177177
178178 // Let's first typecheck the operands.
179179 Forall_operands (it, code)
180+ {
181+ const bool has_array_ini = it->get_bool (" #array_ini" );
180182 typecheck_expr (*it);
183+ if (has_array_ini)
184+ it->set (" #array_ini" , true );
185+ }
181186
182187 // The initializer may be a data member (non-type)
183188 // or a parent class (type).
@@ -323,9 +328,6 @@ void cpp_typecheckt::typecheck_member_initializer(codet &code)
323328 // it's a data member
324329 already_typechecked (symbol_expr);
325330
326- Forall_operands (it, code)
327- already_typechecked (*it);
328-
329331 exprt call=
330332 cpp_constructor (code.source_location (), symbol_expr, code.operands ());
331333
You can’t perform that action at this time.
0 commit comments