OSDN Git Service

PR c++/17743
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Sep 2007 22:50:03 +0000 (22:50 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Sep 2007 22:50:03 +0000 (22:50 +0000)
commit51d7cfb29eacbe1c55aba23008b5fb101856911a
tree2ee8091936fa9f80661d3131455c96b63fb43a40
parent286e886c601c1ec3bb77408e5287ecabde3d9369
    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.

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