re PR c++/17743 (dependent expressions in attributes)
authorJason Merrill <jason@redhat.com>
Tue, 18 Sep 2007 22:50:03 +0000 (18:50 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 18 Sep 2007 22:50:03 +0000 (18:50 -0400)
commit5044ab0e64544ee48062cfd2498ce3e11bd49b83
tree2ee8091936fa9f80661d3131455c96b63fb43a40
parent80a6ca747aa083f973741bace6b07f12f2933c49
re PR c++/17743 (dependent expressions in attributes)

        PR c++/17743
        * pt.c (apply_late_template_attributes): Set processing_template_decl.
        (tsubst_decl) [TYPE_DECL]: Preserve naming typedef, pass
        ATTR_FLAG_TYPE_IN_PLACE.
        (tsubst): Do unqualified lookup to find typedefs from current class.
        [ARRAY_TYPE]: Propagate alignment info.
        * decl2.c (is_late_template_attribute): Only defer handling of
        attribute aligned if the expression is dependent.
        (save_template_attributes): If we're deferring any attributes,
        make this a naming typedef.

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