PR c++/28249
commit639b2fed19bffc345c435f3c298c1f6f3e78a2ad
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jul 2006 09:44:36 +0000 (15 09:44 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jul 2006 09:44:36 +0000 (15 09:44 +0000)
tree82833ed6777c99fa879281c80b54c5a9054a3f51
parent86a737e01cdcc1c80a617c6cdd2cc21d1d6a5813
PR c++/28249
* parser.c (cp_parser_check_decl_spec): New function.
(cp_parser_decl_specifier_seq): Factor out check for repeated
decl-specifiers into cp_parser_check_decl_spec. Use it.
(cp_parser_type_specifier_seq) Use it.

* g++.dg/parse/catch1.C: New test.

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