$ 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
$ 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 constructor_ regular_ field, at varasm.c:5035
:9:29: internal compiler error: in output_
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