https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82360
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2017-10-02 Known to work| |7.2.1 Target Milestone|--- |8.0 Summary|tree check fail in |[8 Regression] tree check |get_inner_reference, at |fail in |expr.c:6996 |get_inner_reference, at | |expr.c:6996 Ever confirmed|0 |1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. > ./cc1plus -quiet t.ii t.ii: In constructor ‘b< <template-parameter-1-1> >::b(b< <template-parameter-1-1> >&&)’: t.ii:3:37: internal compiler error: tree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference, at expr.c:6996 b(b &&c) : d(static_cast<a &&>(c.d)) {} ^ 0x155dde4 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) /tmp/trunk2/gcc/tree.c:9254 0x7ff44f contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) /tmp/trunk2/gcc/tree.h:3218 0xd8ff31 get_inner_reference(tree_node*, long*, long*, tree_node**, machine_mode*, int*, int*, int*) /tmp/trunk2/gcc/expr.c:6996 0xdd1d04 fold_unary_loc(unsigned int, tree_code, tree_node*, tree_node*) /tmp/trunk2/gcc/fold-const.c:7726 0xde70dd fold_build1_loc(unsigned int, tree_code, tree_node*, tree_node*) /tmp/trunk2/gcc/fold-const.c:12226 0xdbce9f fold_convert_loc(unsigned int, tree_node*, tree_node*) /tmp/trunk2/gcc/fold-const.c:2257 0x8a3306 cp_fold_convert(tree_node*, tree_node*) /tmp/trunk2/gcc/cp/cvt.c:607 0xb0019a build_static_cast_1 /tmp/trunk2/gcc/cp/typeck.c:6852 0xb012f9 build_static_cast(tree_node*, tree_node*, int) /tmp/trunk2/gcc/cp/typeck.c:7079 0x9aec22 cp_parser_postfix_expression /tmp/trunk2/gcc/cp/parser.c:6584 0x9b31a3 cp_parser_unary_expression /tmp/trunk2/gcc/cp/parser.c:8251 0x9b428a cp_parser_cast_expression /tmp/trunk2/gcc/cp/parser.c:9019