]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/28249 ("long long long" accepted by catch)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Sat, 15 Jul 2006 09:58:47 +0000 (09:58 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sat, 15 Jul 2006 09:58:47 +0000 (09:58 +0000)
commitf9b093e82282f17ded4b7359fa1db2c1355da33f
treec625e4065d69ad3bc5cdb7f15294a41a7b263f4f
parent7c05114859bdfdd02620aae2a0979ac6bb0d8529
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: r115471
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/catch1.C [new file with mode: 0644]