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:
parent
42445a3405
commit
9582dc4200
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue