mirror of git://gcc.gnu.org/git/gcc.git
class.c (type_build_ctor_call): Return early in C++98 mode.
* class.c (type_build_ctor_call): Return early in C++98 mode. (type_build_dtor_call): Likewise. From-SVN: r204262
This commit is contained in:
parent
5d46aaee73
commit
83f31d8d5d
|
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2013-10-31 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
PR c++/58932
|
PR c++/58932
|
||||||
|
|
|
||||||
|
|
@ -5163,6 +5163,8 @@ type_build_ctor_call (tree t)
|
||||||
return false;
|
return false;
|
||||||
if (!TYPE_HAS_DEFAULT_CONSTRUCTOR (inner))
|
if (!TYPE_HAS_DEFAULT_CONSTRUCTOR (inner))
|
||||||
return true;
|
return true;
|
||||||
|
if (cxx_dialect < cxx11)
|
||||||
|
return false;
|
||||||
/* A user-declared constructor might be private, and a constructor might
|
/* A user-declared constructor might be private, and a constructor might
|
||||||
be trivial but deleted. */
|
be trivial but deleted. */
|
||||||
for (tree fns = lookup_fnfields_slot (inner, complete_ctor_identifier);
|
for (tree fns = lookup_fnfields_slot (inner, complete_ctor_identifier);
|
||||||
|
|
@ -5188,6 +5190,8 @@ type_build_dtor_call (tree t)
|
||||||
if (!CLASS_TYPE_P (inner) || ANON_AGGR_TYPE_P (inner)
|
if (!CLASS_TYPE_P (inner) || ANON_AGGR_TYPE_P (inner)
|
||||||
|| !COMPLETE_TYPE_P (inner))
|
|| !COMPLETE_TYPE_P (inner))
|
||||||
return false;
|
return false;
|
||||||
|
if (cxx_dialect < cxx11)
|
||||||
|
return false;
|
||||||
/* A user-declared destructor might be private, and a destructor might
|
/* A user-declared destructor might be private, and a destructor might
|
||||||
be trivial but deleted. */
|
be trivial but deleted. */
|
||||||
for (tree fns = lookup_fnfields_slot (inner, complete_dtor_identifier);
|
for (tree fns = lookup_fnfields_slot (inner, complete_dtor_identifier);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue