Commit a0c06853 by Jason Merrill Committed by Jason Merrill

re PR c++/56838 (GCC svn doesn't compile libreoffice 4.0.1.2)

	PR c++/56838
	PR c++/17232
	* typeck2.c (abstract_virtuals_error_sfinae): Disable
	complete_type again.

From-SVN: r197613
parent 9fb6b620
2013-04-04 Jason Merrill <jason@redhat.com>
PR c++/56838
PR c++/17232
* typeck2.c (abstract_virtuals_error_sfinae): Disable
complete_type again.
2013-04-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56871
......
......@@ -265,9 +265,13 @@ abstract_virtuals_error_sfinae (tree decl, tree type, abstract_class_use use,
return 0;
type = TYPE_MAIN_VARIANT (type);
#if 0
/* Instantiation here seems to be required by the standard,
but breaks e.g. boost::bind. FIXME! */
/* In SFINAE, non-N3276 context, force instantiation. */
if (!(complain & (tf_error|tf_decltype)))
complete_type (type);
#endif
/* 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
......
......@@ -6,8 +6,8 @@ class A {
};
template<typename T>
void g(T (*a)[1]) {} // { dg-error "abstract" "" }
void g(T (*a)[1]) {} // { dg-error "abstract" "" { xfail *-*-* } }
int main() {
g<A<int> >(0); // { dg-error "no matching function" }
g<A<int> >(0); // { dg-error "no matching function" "" { xfail *-*-* } }
}
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