+2013-10-31 Jason Merrill <jason@redhat.com>
+
+ * class.c (type_build_ctor_call): Return early in C++98 mode.
+ (type_build_dtor_call): Likewise.
+
2013-10-31 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58932
return false;
if (!TYPE_HAS_DEFAULT_CONSTRUCTOR (inner))
return true;
+ if (cxx_dialect < cxx11)
+ return false;
/* A user-declared constructor might be private, and a constructor might
be trivial but deleted. */
for (tree fns = lookup_fnfields_slot (inner, complete_ctor_identifier);
if (!CLASS_TYPE_P (inner) || ANON_AGGR_TYPE_P (inner)
|| !COMPLETE_TYPE_P (inner))
return false;
+ if (cxx_dialect < cxx11)
+ return false;
/* A user-declared destructor might be private, and a destructor might
be trivial but deleted. */
for (tree fns = lookup_fnfields_slot (inner, complete_dtor_identifier);