[Bug c++/96743] ICE on flexible array in initializer list using lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96743 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |9.4 Status|UNCONFIRMED |RESOLVED See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=63707 Resolution|--- |FIXED Keywords|ice-on-valid-code |ice-on-invalid-code --- Comment #2 from Andrew Pinski --- GCC 9.4+ gives the correct error message: :23:1: error: initializer for flexible array member 'BraceTest::BraceTestArrayEntries BraceTest::_entries []' 23 | BraceTest::BraceTest() : _entries { {"FirstAction", [this]( const char *data) {this->Foo( data );} } } | ^ Fixed in 9.4 and above I suspect the patch which fixes PR 63707 fixed this one.
[Bug c++/96743] ICE on flexible array in initializer list using lambdas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96743 --- Comment #1 from Kevin Stallard --- A more complete output of the error: /home/parallels/Perforce/kevin.stallard_Ubuntu18_Helios-Nucleus-Development_9171/BraceTest/BraceTest.cpp: In constructor 'BraceTest::BraceTest()': /home/parallels/Perforce/kevin.stallard_Ubuntu18_Helios-Nucleus-Development_9171/BraceTest/BraceTest.cpp:23:102: internal compiler error: in build_vec_init_elt, at cp/tree.c:665 BraceTest::BraceTest() : _entries { {"FirstAction", [this]( const char *data) {this->Foo( data );} } } ^