OSDN Git Service

PR c++/7586
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Sep 2007 14:13:00 +0000 (14:13 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Sep 2007 14:13:00 +0000 (14:13 +0000)
commitd718e1bc42977e21e80731fcc4004c52963cf33e
tree497200eb12dfd940a8293d497ecc5a24595fb6ef
parent5c7f2fb597349fd03b4e516ee64e8becaefdde1f
    PR c++/7586
        * pt.c (tsubst): Handle typedefs by looking for the specialization.
        (retrieve_specialization): Only tagged types use
        DECL_TEMPLATE_INSTANTIATIONS.
        (instantiate_class_template): Push nested classes too.
        (tsubst_decl) [TYPE_DECL]: Only check for canonical decl for
        tagged types.
        * cp-tree.h (MAYBE_TAGGED_TYPE_P): New macro.
        * init.c (is_aggr_type): Remove redundant tests.
        * class.c (push_nested_class): Use CLASS_TYPE_P.

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