This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24907] New: Invalid Code Accepted
- From: "joel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2005 22:05:32 -0000
- Subject: [Bug c++/24907] New: Invalid Code Accepted
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I am getting a syntax error when compiled as C but not C++.
int f()
{
int x, y, ;
}
Andrew Pinski commented:
I am getting a syntax error with the C front-end but not with the
C++ front-end. This is definitely a bug as this is invalid C++ also.
This is a regression from at least 3.4.0 as 3.3.3 works but 3.4.0 does
not reject it.
--
Summary: Invalid Code Accepted
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: joel at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24907