re PR c++/28249 ("long long long" accepted by catch)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Sat, 15 Jul 2006 09:44:36 +0000 (09:44 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sat, 15 Jul 2006 09:44:36 +0000 (09:44 +0000)
commit856367df0880f605404ff9fc0ddf1420525ef61d
tree82833ed6777c99fa879281c80b54c5a9054a3f51
parent0a9367cbdbdc9e5302e7ac39b00c26e698c4100d
re PR c++/28249 ("long long long" accepted by catch)

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.

From-SVN: r115469
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/catch1.C [new file with mode: 0644]