Commit df5c5f78 by Jason Merrill Committed by Jason Merrill

re PR c++/17232 ([DR 1640] classes and class template specializations treated…

re PR c++/17232 ([DR 1640] classes and class template specializations treated differently w.r.t. core issue #337)

	PR c++/17232
	PR c++/56642
	* typeck2.c (abstract_virtuals_error_sfinae): Revert complete_type
	change for now.

From-SVN: r196758
parent 286fb677
2013-03-17 Jason Merrill <jason@redhat.com>
PR c++/17232
PR c++/56642
* typeck2.c (abstract_virtuals_error_sfinae): Revert complete_type
change for now.
2013-03-16 Jason Merrill <jason@redhat.com> 2013-03-16 Jason Merrill <jason@redhat.com>
* decl.c (grokdeclarator): Assert that we won't see a pointer to * decl.c (grokdeclarator): Assert that we won't see a pointer to
......
...@@ -265,10 +265,6 @@ abstract_virtuals_error_sfinae (tree decl, tree type, abstract_class_use use, ...@@ -265,10 +265,6 @@ abstract_virtuals_error_sfinae (tree decl, tree type, abstract_class_use use,
return 0; return 0;
type = TYPE_MAIN_VARIANT (type); type = TYPE_MAIN_VARIANT (type);
/* In SFINAE context, force instantiation. */
if (!(complain & tf_error))
complete_type (type);
/* If the type is incomplete, we register it within a hash table, /* If the type is incomplete, we register it within a hash table,
so that we can check again once it is completed. This makes sense so that we can check again once it is completed. This makes sense
only for objects for which we have a declaration or at least a only for objects for which we have a declaration or at least a
......
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