GCC 8 and newer have the correct error message:
struct.cc:29:1: error: initialization of flexible array member in a nested
context
29 | };
| ^
struct.cc:29:1: error: initialization of flexible array member in a nested
context
** Changed in: gcc-defaults (Ubuntu)
Status: New =>
** Tags added: bionic
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1810606
Title:
gcc compile fail with internal error while compiling structs
To manage notifications about this bug go to:
https:/
Temporary file generated by the compiler.
** Attachment added: "structerror.s"
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1810606/+attachment/5227087/+files/structerror.s
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ub
Temporary file
** Attachment added: "structerror.ii"
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1810606/+attachment/5227086/+files/structerror.ii
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launch
Source code that fails compile.
** Attachment added: "structerror.cpp"
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1810606/+attachment/5227085/+files/structerror.cpp
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.