$ cat expected-results.ii
# 1 "" 3
namespace a {
namespace b {
enum c { d };
}
} // namespace a
struct {
a::b::c e;
char f[];
} g[]{a::b::d, "nodeid", {}};
$ g++-7 -Wall -std=gnu++11 -c expected-results.ii
:9:29: internal compiler error: in output_constructor_regular_field, at
varasm.c:5035
Please submit a full bug report,
with preprocessed source if appropriate.
$ g++-8 -Wall -std=gnu++11 -c expected-results.ii
:9:28: error: initialization of flexible array member in a nested context
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1848795
Title:
Internal error in varasm.c
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-7/+bug/1848795/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs