This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79535] New: ICE in verify_ctor_sanity, at cp/constexpr.c:2636
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Feb 2017 17:27:27 +0000
- Subject: [Bug c++/79535] New: ICE in verify_ctor_sanity, at cp/constexpr.c:2636
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79535
Bug ID: 79535
Summary: ICE in verify_ctor_sanity, at cp/constexpr.c:2636
Product: gcc
Version: 7.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
Affects versions 6/7 (on x86_64 GNU/Linux) :
$ cat z1.cc
struct A
{
int b = 1;
int c = 2;
int x[] = { c, 3 };
};
A a = { 4, 5 };
$ gcc-7-20170212 -c z1.cc
z1.cc:7:14: internal compiler error: in verify_ctor_sanity, at
cp/constexpr.c:2636
A a = { 4, 5 };
^
0x8bb029 verify_ctor_sanity
../../gcc/cp/constexpr.c:2635
0x8c595e cxx_eval_bare_aggregate
../../gcc/cp/constexpr.c:2665
0x8bfd79 cxx_eval_constant_expression
../../gcc/cp/constexpr.c:4304
0x8c5ae6 cxx_eval_bare_aggregate
../../gcc/cp/constexpr.c:2681
0x8bfd79 cxx_eval_constant_expression
../../gcc/cp/constexpr.c:4304
0x8c67e1 cxx_eval_outermost_constant_expr
../../gcc/cp/constexpr.c:4603
0x8c9dc0 maybe_constant_init(tree_node*, tree_node*)
../../gcc/cp/constexpr.c:4926
0x73a7c2 store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
../../gcc/cp/typeck2.c:819
0x6966ca check_initializer
../../gcc/cp/decl.c:6359
0x6c2577 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
../../gcc/cp/decl.c:7025
0x7bdbf8 cp_parser_init_declarator
../../gcc/cp/parser.c:19397
0x7be5af cp_parser_simple_declaration
../../gcc/cp/parser.c:12792
0x7bf30a cp_parser_block_declaration
../../gcc/cp/parser.c:12618
0x7c722e cp_parser_declaration
../../gcc/cp/parser.c:12515
0x7c7686 cp_parser_declaration_seq_opt
../../gcc/cp/parser.c:12391
0x7c79b8 cp_parser_translation_unit
../../gcc/cp/parser.c:4366
0x7c79b8 c_parse_file()
../../gcc/cp/parser.c:38425
0x92a392 c_common_parse_file()
../../gcc/c-family/c-opts.c:1107