r128621 - in /trunk/gcc: cp/ChangeLog cp/class....
jason@gcc.gnu.org
jason@gcc.gnu.org
Thu Sep 20 14:13:00 GMT 2007
Author: jason
Date: Thu Sep 20 14:13:00 2007
New Revision: 128621
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128621
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/ext/tmplattr4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/init.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/g++.dg/ext/tmplattr3.C
More information about the Gcc-cvs
mailing list