PR c++/17743, c++/19163
authorJason Merrill <jason@redhat.com>
Fri, 14 Sep 2007 06:07:25 +0000 (02:07 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 14 Sep 2007 06:07:25 +0000 (02:07 -0400)
commit4f4141ffe2458032fe7183e7579834145587dc3f
tree388e176a69dd27b65d6eeb4f7edbffb5f452e428
parentd9933b9d648e6992468c894fec7e5e821125e4b7
PR c++/17743, c++/19163

        PR c++/17743, c++/19163
        * decl2.c (is_late_template_attribute): New fn.
        (splice_template_attributes, save_template_attributes): New fns.
        (cplus_decl_attributes): Call save_template_attributes.
        * pt.c (apply_late_template_attributes): New fn.
        (instantiate_class_template, tsubst_decl): Use it.
        * cp-tree.h: Declare is_late_template_attribute.

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