https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82593
--- Comment #1 from Antonio Ospite <ao2 at ao2 dot it> --- Created attachment 42387 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42387&action=edit Parenthesized array member initializer with enum as indices Adding a more concise test program. Using an array of scalar values instead of an array of structs also gives the ICE, this time with a nice warning: ----------------------------------------------------------------------- $ g++ -c parenthesized_array_initializer_with_enum_indices.cpp parenthesized_array_initializer_with_enum_indices.cpp: In constructor ‘SomeClass::SomeClass()’: parenthesized_array_initializer_with_enum_indices.cpp:17:3: warning: list-initializer for non-class type must not be parenthesized }) ^ parenthesized_array_initializer_with_enum_indices.cpp:17:3: internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1294 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. -----------------------------------------------------------------------