http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47311
--- Comment #28 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-01-28 23:36:02 UTC --- Author: dodji Date: Fri Jan 28 23:35:59 2011 New Revision: 169377 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169377 Log: Fix PR c++/47311 gcc/cp/ PR c++/47311 * cp-tree.h (fixup_template_parms): Declare. * pt.c (end_template_parm_list): Do not fixup template parms here. (fixup_template_parms): Remove static. Fix typo in the comments. Remove useless code statement. (fixup_template_parm): For a template template parameter, fixup its attributes before fixing up its type. * parser.c (cp_parser_template_declaration_after_export): After parsing template parameters fixup their types. gcc/testsuite/ PR c++/47311 * g++.dg/template/param2.C: New test. Added: trunk/gcc/testsuite/g++.dg/template/param2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog