PR c++/79900 - ICE in strip_typedefs
authorMarek Polacek <polacek@redhat.com>
Thu, 9 Mar 2017 08:35:37 +0000 (08:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 9 Mar 2017 08:35:37 +0000 (08:35 +0000)
commit423aec8b5756c73681dadd10aec25e28dc18eb99
tree6f5ceb49588acca1f4f4d463e536488ff47b8073
parentdd01cd0ca29b687337661abd9870c32a287de94b
PR c++/79900 - ICE in strip_typedefs

PR c++/79900 - ICE in strip_typedefs
* tree.c (strip_typedefs): Skip the attribute handling if T is
a variant type which hasn't been updated yet.

* g++.dg/warn/Wpadded-1.C: New test.

From-SVN: r245988
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wpadded-1.C [new file with mode: 0644]