OSDN Git Service

PR c++/28858
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Sep 2006 22:56:44 +0000 (22:56 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Sep 2006 22:56:44 +0000 (22:56 +0000)
commitc42e0e2d591a203e8cfedb867b324e3938c890f0
tree7f8c829898d90a21a450edc8b19bfc0094314329
parent180476fab4d853ca2ef9cfb51edb77917bfee609
PR c++/28858
* parser.c (cp_parser_skip_until_found): Rename to
cp_parser_skip_to_end_of_template_parameter_list.  Remove last two
parameters.  Track levels of '< ... >'.  Stop at '{', '}', or ';'.
Reorganize.  Adjust comment.
(cp_parser_template_declaration_after_export): Adjust call.
(cp_parser_enclosed_template_argument_list): Likewise.

* g++.dg/parse/template20.C: New test.
* g++.dg/template/operator8.C: Remove obsolete part.
* g++.dg/parse/def-tmpl-arg1.C: Adjust error-markers.
* g++.old-deja/g++.pt/crash65.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116788 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/def-tmpl-arg1.C
gcc/testsuite/g++.dg/parse/template20.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/operator8.C
gcc/testsuite/g++.old-deja/g++.pt/crash65.C