This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41876] New: [4.3/4.4/4.5 regression] Parse problems with 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: 30 Oct 2009 10:52:00 -0000
- Subject: [Bug c++/41876] New: [4.3/4.4/4.5 regression] Parse problems with catch
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following valid code snippet is rejected since GCC 3.4.0:
==============================
struct A;
void foo()
{
try {} catch(int A) {}
}
==============================
bug.cc: In function 'void foo()':
bug.cc:5:20: error: two or more data types in declaration of 'type name'
--
Summary: [4.3/4.4/4.5 regression] Parse problems with catch
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41876