OSDN Git Service

Fix PR c++/47311
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Jan 2011 23:35:59 +0000 (23:35 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Jan 2011 23:35:59 +0000 (23:35 +0000)
commit71c5bb94f750e8cc98201a400fc250081e96e0b7
treef6331eb712bb93cb702bf05a9c41335d882dacb7
parent487e88d3d52110d5f9230e7fe806285a0e37585a
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.

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