OSDN Git Service

2008-02-05 Douglas Gregor <doug.gregor@gmail.com>
authordgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Feb 2008 13:29:43 +0000 (13:29 +0000)
committerdgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Feb 2008 13:29:43 +0000 (13:29 +0000)
commit9e5dd959b1edb9971e8d00ba01f310b9ee43953b
tree6e7ba93340a32ec6b5dfb7440327efee8a37079c
parent79f7a0b87a243646451b149c9bd22163d18f5da8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132120 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/ext/attrib30.C [new file with mode: 0644]