PR c++/56838
PR c++/17232
* typeck2.c (abstract_virtuals_error_sfinae): Disable
complete_type again.
From-SVN: r197613
+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
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
};
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 *-*-* } }
}