https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Ville Voutilainen from comment #1)
> Current trunk doesn't ICE.

Yes it does. Is your compiler built with checking disabled?

$ g++ x.c
[many errors]
x.c:16:3: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c:12934
   ptr
   ^
0x125b6b0 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
    /data/repos/gcc/trunk/gcc/tree.c:9398
0x6dc0f5 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
    /data/repos/gcc/trunk/gcc/tree.h:2893
0x792744 tsubst_copy
    /data/repos/gcc/trunk/gcc/cp/pt.c:12934
0x7a0b6c tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
    /data/repos/gcc/trunk/gcc/cp/pt.c:15527
0x79af03 tsubst_expr
    /data/repos/gcc/trunk/gcc/cp/pt.c:14342
0x796926 tsubst_expr
    /data/repos/gcc/trunk/gcc/cp/pt.c:13753
0x7967e7 tsubst_expr
    /data/repos/gcc/trunk/gcc/cp/pt.c:13739
0x797ed0 tsubst_expr
    /data/repos/gcc/trunk/gcc/cp/pt.c:13925
0x7b6cea instantiate_decl(tree_node*, int, bool)
    /data/repos/gcc/trunk/gcc/cp/pt.c:20352
0x7b7633 instantiate_pending_templates(int)
    /data/repos/gcc/trunk/gcc/cp/pt.c:20468
0x8106d6 cp_write_global_declarations()
    /data/repos/gcc/trunk/gcc/cp/decl2.c:4389

Reply via email to