https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78635
Bug ID: 78635 Summary: [6/7 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:4989 Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- struct dirs_t { int x; char y[]; }; struct dirs_t a[2] = { { 1, 'a' }, { 1, 'b' } }; t.cc:6:48: internal compiler error: in output_constructor_regular_field, at varasm.c:4989 struct dirs_t a[2] = { { 1, 'a' }, { 1, 'b' } }; ^ 0x10a4a04 output_constructor_regular_field /home/jwakely/src/gcc/gcc/gcc/varasm.c:4989 0x10a4a04 output_constructor /home/jwakely/src/gcc/gcc/gcc/varasm.c:5297 0x10a4da4 output_constant /home/jwakely/src/gcc/gcc/gcc/varasm.c:4674 0x10a4da4 assemble_variable_contents /home/jwakely/src/gcc/gcc/gcc/varasm.c:2083 0x10ac609 assemble_variable(tree_node*, int, int, int) /home/jwakely/src/gcc/gcc/gcc/varasm.c:2259 0x10b1e28 varpool_node::assemble_decl() /home/jwakely/src/gcc/gcc/gcc/varpool.c:588 0x9b870b output_in_order /home/jwakely/src/gcc/gcc/gcc/cgraphunit.c:2248 0x9b8add symbol_table::compile() /home/jwakely/src/gcc/gcc/gcc/cgraphunit.c:2488 0x9bb592 symbol_table::compile() /home/jwakely/src/gcc/gcc/gcc/cgraphunit.c:2558 0x9bb592 symbol_table::finalize_compilation_unit() /home/jwakely/src/gcc/gcc/gcc/cgraphunit.c:2584 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.