re PR c++/35074 (ICE with attribute "aligned" for template classes)
authorDouglas Gregor <doug.gregor@gmail.com>
Tue, 5 Feb 2008 13:29:43 +0000 (13:29 +0000)
committerDoug Gregor <dgregor@gcc.gnu.org>
Tue, 5 Feb 2008 13:29:43 +0000 (13:29 +0000)
commit1db54f4e49894663db378fe462590f7a91ae75ec
tree6e7ba93340a32ec6b5dfb7440327efee8a37079c
parent0f5098aef3678a7b6966a8bcabd7a4d05020fd23
re PR c++/35074 (ICE with attribute "aligned" for template classes)

2008-02-05  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/35074
* decl2.c (save_template_attributes): When we're modifying the
TYPE_MAIN_VARIANT to add new attributes, be sure to also modify
all of the other variants to add those same attributes. Otherwise,
the main variant will be inconsistent with those other variants.

2008-02-05  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/35074
* g++.dg/ext/attrib30.C: New.

From-SVN: r132120
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/ext/attrib30.C [new file with mode: 0644]