File tree 2 files changed +6
-4
lines changed
regression/systemc/Array2
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- KNOWNBUG
1
+ CORE
2
2
main.cpp
3
3
-DNO_IO -DNO_STRING
4
4
^EXIT=0$
Original file line number Diff line number Diff line change @@ -177,7 +177,12 @@ void cpp_typecheckt::typecheck_member_initializer(codet &code)
177
177
178
178
// Let's first typecheck the operands.
179
179
Forall_operands (it, code)
180
+ {
181
+ const bool has_array_ini = it->get_bool (" #array_ini" );
180
182
typecheck_expr (*it);
183
+ if (has_array_ini)
184
+ it->set (" #array_ini" , true );
185
+ }
181
186
182
187
// The initializer may be a data member (non-type)
183
188
// or a parent class (type).
@@ -323,9 +328,6 @@ void cpp_typecheckt::typecheck_member_initializer(codet &code)
323
328
// it's a data member
324
329
already_typechecked (symbol_expr);
325
330
326
- Forall_operands (it, code)
327
- already_typechecked (*it);
328
-
329
331
exprt call=
330
332
cpp_constructor (code.source_location (), symbol_expr, code.operands ());
331
333
You can’t perform that action at this time.
0 commit comments