[Bug c++/35074] [4.3 regression] ICE with attribute "aligned" for template classes

dgregor at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Feb 5 13:31:00 GMT 2008



------- Comment #5 from dgregor at gcc dot gnu dot org  2008-02-05 13:30 -------
Subject: Bug 35074

Author: dgregor
Date: Tue Feb  5 13:29:43 2008
New Revision: 132120

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132120
Log:
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.

Added:
    trunk/gcc/testsuite/g++.dg/ext/attrib30.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35074



More information about the Gcc-bugs mailing list