This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r115471 - in /branches/gcc-4_0-branch/gcc: cp/C...
- From: reichelt at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 15 Jul 2006 09:58:48 -0000
- Subject: r115471 - in /branches/gcc-4_0-branch/gcc: cp/C...
Author: reichelt
Date: Sat Jul 15 09:58:47 2006
New Revision: 115471
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115471
Log:
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.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/catch1.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog