This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2006 09:44:44 -0000
- Subject: [Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
- References: <bug-28249-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from reichelt at gcc dot gnu dot org 2006-07-15 09:44 -------
Subject: Bug 28249
Author: reichelt
Date: Sat Jul 15 09:44:36 2006
New Revision: 115469
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115469
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:
trunk/gcc/testsuite/g++.dg/parse/catch1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28249