This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/9262: gcc-3.4 segfaults on false case label


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]