This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20245] New: [4.1 regression] ICE on invalid function declaration
- 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: 28 Feb 2005 09:27:18 -0000
- Subject: [Bug c/20245] New: [4.1 regression] ICE on invalid function declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Mainline now segfaults when compiling the following invalid code snipptet:
===============
void foo() x;
===============
bug.c: In function 'foo':
bug.c:1: error: expected declaration specifiers before 'x'
bug.c:1: error: expected '{' at end of input
bug.c:1: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
Joseph, this is probably fallout from the new C parser.
Could you please have a look?
--
Summary: [4.1 regression] ICE on invalid function declaration
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,jsm28 at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20245