Commit 6e62a2b4 by Paolo Carlini Committed by Paolo Carlini

re PR c++/58466 (ICE in cxx_eval_constant_expression)

/cp
2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58466
	* pt.c (most_specialized_class): Bump processing_template_decl for
	get_class_bindings.

/testsuite
2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58466
	* g++.dg/cpp0x/variadic145.C: New.

From-SVN: r203836
parent 4484a35a
2013-10-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58466
* pt.c (most_specialized_class): Bump processing_template_decl for
get_class_bindings.
2013-10-18 Paolo Carlini <paolo.carlini@oracle.com>
* parser.c (cp_parser_lookup_name): Tidy.
2013-10-17 Andrew MacLeod <amacleod@redhat.com>
......
......@@ -18615,10 +18615,15 @@ most_specialized_class (tree type, tree tmpl, tsubst_flags_t complain)
if (spec_tmpl == error_mark_node)
return error_mark_node;
++processing_template_decl;
tree parms = DECL_INNERMOST_TEMPLATE_PARMS (spec_tmpl);
spec_args = get_class_bindings (tmpl, parms,
partial_spec_args,
args);
--processing_template_decl;
if (spec_args)
{
if (outer_args)
......
2013-10-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58466
* g++.dg/cpp0x/variadic145.C: New.
2013-10-18 Andrew MacLeod <amacleod@redhat.com>
* g++.dg/plugin/header_plugin.c: Don't include tree-flow.h.
......
// PR c++/58466
// { dg-do compile { target c++11 } }
template<char, char...> struct A;
template<typename> struct B;
template<char... C> struct B<A<C...>> {};
B<A<'X'>> b; // { dg-error "incomplete type" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment