re PR lto/45018 (ICE: tree check: did not expect class 'type', have 'type' (record_ty...
authorRichard Guenther <rguenther@suse.de>
Wed, 21 Jul 2010 15:09:00 +0000 (15:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 21 Jul 2010 15:09:00 +0000 (15:09 +0000)
commit60f6be5a8e61073ff0eb3ee24c4a2288010f2653
tree1edf8a10fa5465548dc47d5e0ef2c04b32cf346b
parent79cf76280626b079c07bdbb362f51a66416555d3
re PR lto/45018 (ICE: tree check: did not expect class 'type', have 'type' (record_type) in contains_placeholder_p, at tree.c:2749)

2010-07-21  Richard Guenther  <rguenther@suse.de>

PR lto/45018
* tree.c (find_decls_types_r): Do not follow TREE_CHAIN
of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.

* g++.dg/lto/20100721-1_0.C: New testcase.

From-SVN: r162380
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/20100721-1_0.C [new file with mode: 0644]
gcc/tree.c