We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b262a5 commit 09518d6Copy full SHA for 09518d6
src/cpp/cpp_constructor.cpp
@@ -47,12 +47,16 @@ codet cpp_typecheckt::cpp_constructor(
47
// The purpose of the tag #array_ini is to rule out ill-formed
48
// programs.
49
50
+ // TODO: in a program it is not allowed, but the implementation of the
51
+ // copy constructor requires it...
52
+#if 0
53
if(!operands.empty() && !operands.front().get_bool("#array_ini"))
54
{
55
error().source_location=source_location;
56
error() << "bad array initializer" << eom;
57
throw 0;
58
}
59
+#endif
60
61
assert(operands.empty() || operands.size()==1);
62
0 commit comments