https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72775
Bug ID: 72775 Summary: internal compiler error: in finish_expr_stmt, at cp/semantics.c:677 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- Since r233183, we ICE with: class S { bool b; char a[] = "foo"; S () {} }; $ ./cc1plus -quiet q.cc q.cc: In constructor ‘S::S()’: q.cc:4:8: internal compiler error: in finish_expr_stmt, at cp/semantics.c:677 S () {} ^ 0x9b904c finish_expr_stmt(tree_node*) /home/marek/src/gcc/gcc/cp/semantics.c:677 0x98ed5a perform_member_init /home/marek/src/gcc/gcc/cp/init.c:803 0x990727 emit_mem_initializers(tree_node*) /home/marek/src/gcc/gcc/cp/init.c:1179 0x9bc39a finish_mem_initializers(tree_node*) /home/marek/src/gcc/gcc/cp/semantics.c:1627 0x90c782 cp_parser_ctor_initializer_opt /home/marek/src/gcc/gcc/cp/parser.c:13491 0x919f06 cp_parser_ctor_initializer_opt_and_function_body /home/marek/src/gcc/gcc/cp/parser.c:20764 0x922f70 cp_parser_function_definition_after_declarator /home/marek/src/gcc/gcc/cp/parser.c:25475 0x92556b cp_parser_late_parsing_for_member /home/marek/src/gcc/gcc/cp/parser.c:26354 0x91bf8d cp_parser_class_specifier_1 /home/marek/src/gcc/gcc/cp/parser.c:21630 0x91c06a cp_parser_class_specifier /home/marek/src/gcc/gcc/cp/parser.c:21656 0x9108e2 cp_parser_type_specifier /home/marek/src/gcc/gcc/cp/parser.c:15883 0x90b753 cp_parser_decl_specifier_seq /home/marek/src/gcc/gcc/cp/parser.c:12802 0x90ac9e cp_parser_simple_declaration /home/marek/src/gcc/gcc/cp/parser.c:12336 0x90ac26 cp_parser_block_declaration /home/marek/src/gcc/gcc/cp/parser.c:12283 0x90a9a8 cp_parser_declaration /home/marek/src/gcc/gcc/cp/parser.c:12180 0x90a501 cp_parser_declaration_seq_opt /home/marek/src/gcc/gcc/cp/parser.c:12059 0x8fa316 cp_parser_translation_unit /home/marek/src/gcc/gcc/cp/parser.c:4350 0x948552 c_parse_file() /home/marek/src/gcc/gcc/cp/parser.c:37581 0xafbce0 c_common_parse_file() /home/marek/src/gcc/gcc/c-family/c-opts.c:1070 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.