http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58466

--- Comment #2 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
Crash stack trace:

PR58466.cc:7:11: internal compiler error: unexpected expression 'C' of kind
template_parm_index
 B<A<'X'>> b;
           ^
0x6c40ce cxx_eval_constant_expression
        ../../gcc/gcc/cp/semantics.c:8197
0x6c7036 cxx_eval_outermost_constant_expr
        ../../gcc/gcc/cp/semantics.c:8217
0x6c9cab maybe_constant_value(tree_node*)
        ../../gcc/gcc/cp/semantics.c:8327
0x5b164e convert_nontype_argument
        ../../gcc/gcc/cp/pt.c:5576
0x5b164e convert_template_argument
        ../../gcc/gcc/cp/pt.c:6453
0x5aa702 coerce_template_parameter_pack
        ../../gcc/gcc/cp/pt.c:6577
0x5aa702 coerce_template_parms
        ../../gcc/gcc/cp/pt.c:6776
0x5b327a lookup_template_class_1
        ../../gcc/gcc/cp/pt.c:7398
0x5b327a lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ../../gcc/gcc/cp/pt.c:7695
0x5b894e tsubst_aggr_type
        ../../gcc/gcc/cp/pt.c:9977
0x5ac34b tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/gcc/cp/pt.c:11367
0x5b7f1a tsubst_template_args
        ../../gcc/gcc/cp/pt.c:9774
0x5ac09f tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/gcc/cp/pt.c:11672
0x5c6ee0 get_class_bindings
        ../../gcc/gcc/cp/pt.c:18177
0x5c7ad2 most_specialized_class
        ../../gcc/gcc/cp/pt.c:18401
0x5d85f0 instantiate_class_template_1
        ../../gcc/gcc/cp/pt.c:8687
0x5d85f0 instantiate_class_template(tree_node*)
        ../../gcc/gcc/cp/pt.c:9216
0x66445b complete_type(tree_node*)
        ../../gcc/gcc/cp/typeck.c:132
0x555239 start_decl_1(tree_node*, bool)
        ../../gcc/gcc/cp/decl.c:4670
0x57f03d start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        ../../gcc/gcc/cp/decl.c:4633
Please submit a full bug report, [etc.]

Reply via email to