]> gcc.gnu.org Git - gcc.git/commit
re PR c++/29732 (ICE on invalid friend declaration)
authorMark Mitchell <mark@codesourcery.com>
Fri, 8 Dec 2006 06:27:22 +0000 (06:27 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 8 Dec 2006 06:27:22 +0000 (06:27 +0000)
commit9ba7a2f2926541d4db21c6df15acc783b73e1f4f
tree7ba5569ae3e14325934f7a9e8cdf809c494d4870
parentcf71109bd6749b28e07670d2cf8eb7d3c216f531
re PR c++/29732 (ICE on invalid friend declaration)

PR c++/29732
* cp-tree.h (DECL_USE_TEMPLATE): Mention partial specializations.
(explicit_class_specialization_p): Declare.
* pt.c (explicit_class_specialization_p): New function.
* parser.c (cp_parser_init_declarator): Check correct number of
template parameters for in-class function definitions.
(cp_parser_check_declrator_template_parameters): Stop looking for
template classes when we find an explicit specialization.
PR c++/29732
* g++.dg/template/crash65.C: New test.
* g++.dg/template/spec16.C: Tweak error markers.

From-SVN: r119649
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash65.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/spec16.C
This page took 0.057797 seconds and 5 git commands to generate.