[Bug c++/41876] New: [4.3/4.4/4.5 regression] Parse problems with catch
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 30 10:52:00 GMT 2009
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
More information about the Gcc-bugs
mailing list