https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69158
Bug ID: 69158 Summary: [6 Regression] ICE in in cxx_eval_indirect_ref, at cp/constexpr.c:2598 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- $ cat FGFDMExec.ii char IdHdr[] { (IdHdr)[0] } $ g++ -c -g -O2 FGFDMExec.ii FGFDMExec.ii:1:27: internal compiler error: in cxx_eval_indirect_ref, at cp/constexpr.c:2598 char IdHdr[] { (IdHdr)[0] } ^ 0x6f92bb cxx_eval_indirect_ref ../../src/gcc/cp/constexpr.c:2597 0x6f92bb cxx_eval_constant_expression ../../src/gcc/cp/constexpr.c:3371 0x6f6eb2 cxx_eval_array_reference ../../src/gcc/cp/constexpr.c:1767 0x6f6eb2 cxx_eval_constant_expression ../../src/gcc/cp/constexpr.c:3506 0x6fa278 cxx_eval_outermost_constant_expr ../../src/gcc/cp/constexpr.c:3773 0x6fb293 maybe_constant_value_1 ../../src/gcc/cp/constexpr.c:3960 0x6fb293 maybe_constant_value(tree_node*, tree_node*) ../../src/gcc/cp/constexpr.c:3981 0x61a313 massage_init_elt ../../src/gcc/cp/typeck2.c:1227 0x619847 process_init_constructor_array ../../src/gcc/cp/typeck2.c:1291 0x619847 process_init_constructor ../../src/gcc/cp/typeck2.c:1593 0x619847 digest_init_r ../../src/gcc/cp/typeck2.c:1121 0x61acca digest_init_flags(tree_node*, tree_node*, int) ../../src/gcc/cp/typeck2.c:1166 0x61acca store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, int) ../../src/gcc/cp/typeck2.c:800 0x5d4ca7 check_initializer ../../src/gcc/cp/decl.c:6137 0x5ea89d cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../src/gcc/cp/decl.c:6765 0x66f640 cp_parser_init_declarator ../../src/gcc/cp/parser.c:18601 0x66fc0e cp_parser_simple_declaration ../../src/gcc/cp/parser.c:12324 0x670024 cp_parser_block_declaration ../../src/gcc/cp/parser.c:12200 0x647e47 cp_parser_declaration ../../src/gcc/cp/parser.c:12097 0x67775a cp_parser_declaration_seq_opt ../../src/gcc/cp/parser.c:11976 Please submit a full bug report, with preprocessed source if appropriate.