re PR c++/53650 (large array causes huge memory use)

PR c++/53650
	* call.c (type_has_extended_temps): Fix C++ism.

From-SVN: r195397
This commit is contained in:
Jason Merrill 2013-01-22 21:48:00 -05:00 committed by Jason Merrill
parent 42445a3405
commit 9582dc4200
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2013-01-22 Jason Merrill <jason@redhat.com>
* call.c (type_has_extended_temps): Fix C++ism.
PR c++/53650
* call.c (type_has_extended_temps): New.
* cp-tree.h: Declare it.

View File

@ -8847,9 +8847,10 @@ type_has_extended_temps (tree type)
return true;
if (CLASS_TYPE_P (type))
{
tree f;
if (is_std_init_list (type))
return true;
for (tree f = next_initializable_field (TYPE_FIELDS (type));
for (f = next_initializable_field (TYPE_FIELDS (type));
f; f = next_initializable_field (DECL_CHAIN (f)))
if (type_has_extended_temps (TREE_TYPE (f)))
return true;