c/9262: gcc-3.4 segfaults on false case label
rassahah@neofonie.de
rassahah@neofonie.de
Mon Jan 13 05:17:00 GMT 2003
>Number: 9262
>Category: c
>Synopsis: gcc-3.4 segfaults on false case label
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 10 08:46:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Rasmus Hahn
>Release: gcc-3.4-cvs 20030109 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu
Thread model: posix
>Description:
gcc aborts with segfault after a parse error. Seems new since gcc-3.3:
output:
$ gcc x.c
x.c: In function `main':
x.c:5: error: parse error before "case"
x.c:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$
>How-To-Repeat:
x.c:
int main () {
switch (3)
case 3:
1, /* note comma! */
case 4:
2;
}
>Fix:
always write correct c-programs! This is better anyway.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list