Skip to content

Commit 09518d6

Browse files
peterschrammeltautschnig
authored andcommitted
Deactivate internal array initializer
1 parent 0b262a5 commit 09518d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cpp/cpp_constructor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,16 @@ codet cpp_typecheckt::cpp_constructor(
4747
// The purpose of the tag #array_ini is to rule out ill-formed
4848
// programs.
4949

50+
// TODO: in a program it is not allowed, but the implementation of the
51+
// copy constructor requires it...
52+
#if 0
5053
if(!operands.empty() && !operands.front().get_bool("#array_ini"))
5154
{
5255
error().source_location=source_location;
5356
error() << "bad array initializer" << eom;
5457
throw 0;
5558
}
59+
#endif
5660

5761
assert(operands.empty() || operands.size()==1);
5862

0 commit comments

Comments
 (0)