re PR c++/58932 ([C++11] Deleted functions and SFINAE in partial template specializations)

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

	PR c++/58932
	Revert:
	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-31  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58932
	Revert:
	2013-10-18  Paolo Carlini  <paolo.carlini@oracle.com>

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

	* g++.dg/cpp0x/sfinae49.C: New.

From-SVN: r204250
This commit is contained in:
Paolo Carlini 2013-10-31 12:09:17 +00:00 committed by Paolo Carlini
parent 39344c9927
commit 7dccc537ba
4 changed files with 21 additions and 15 deletions

View File

@ -1,3 +1,13 @@
2013-10-31 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58932
Revert:
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-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58581

View File

@ -18616,15 +18616,10 @@ 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)

View File

@ -1,3 +1,14 @@
2013-10-31 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58932
Revert:
2013-10-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58466
* g++.dg/cpp0x/variadic145.C: New.
* g++.dg/cpp0x/sfinae49.C: New.
2013-10-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58581

View File

@ -1,10 +0,0 @@
// 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" }