[Bug c++/87897] New: [9 Regression] ICE in maybe_constant_value, at cp/constexpr.c:5255 since r265788
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 6 08:43:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87897
Bug ID: 87897
Summary: [9 Regression] ICE in maybe_constant_value, at
cp/constexpr.c:5255 since r265788
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: jason at gcc dot gnu.org
Target Milestone: ---
Following causes ICE:
$ cat parser2.ii
struct a {
} typedef b;
a const c = b();
$ g++ parser2.ii -c
parser2.ii:3:15: internal compiler error: in maybe_constant_value, at
cp/constexpr.c:5255
3 | a const c = b();
| ^
0x5f719b maybe_constant_value(tree_node*, tree_node*)
../../gcc/cp/constexpr.c:5251
0xa2187c store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
../../gcc/cp/typeck2.c:825
0x8b334d check_initializer
../../gcc/cp/decl.c:6486
0x8cb79c cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
../../gcc/cp/decl.c:7162
0x96776b cp_parser_init_declarator
../../gcc/cp/parser.c:20033
0x96f203 cp_parser_simple_declaration
../../gcc/cp/parser.c:13219
0x974262 cp_parser_declaration
../../gcc/cp/parser.c:12916
0x974a0c cp_parser_translation_unit
../../gcc/cp/parser.c:4668
0x974a0c c_parse_file()
../../gcc/cp/parser.c:39266
0xa77000 c_common_parse_file()
../../gcc/c-family/c-opts.c:1150
More information about the Gcc-bugs
mailing list