Comment 3 for bug 1848795

Revision history for this message
Matthias Klose (doko) wrote :

$ 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