public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10278: ICE in parser
@ 2003-03-31 14:46 gbeauchesne
0 siblings, 0 replies; only message in thread
From: gbeauchesne @ 2003-03-31 14:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 10278
>Category: c++
>Synopsis: ICE in parser
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon Mar 31 14:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Gwenole Beauchesne
>Release: GNU C++ version 3.2.3 20030329 (prerelease)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
As a user reported in <http://gcc.gnu.org/ml/gcc-bugs/2003-03/msg01836.html>
With GNU C++ version 3.2.3 20030329 (prerelease)
[gb@hp6 gcc]$ ./cc1plus ~/vrac/parens3.C
int main()
/home/gb/vrac/parens3.C:5: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
With GNU C++ version 3.4 20030329 (experimental)
[gb@hp6 gcc]$ ./cc1plus ~/vrac/parens3.C
int main()
/home/gb/vrac/parens3.C:5: error: expected identifier
/home/gb/vrac/parens3.C:5: internal compiler error: tree check: expected
identifier_node, have error_mark in lookup_label, at cp/decl.c:4770
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This is a regression from
gcc version 2.95.4 20011002 (Debian prerelease)
gcc version 2.96 20000731 (Mandrake Linux 9.1 2.96-0.82mdk, aka 2.96-RH 110)
Also fails with 3.0.4
>How-To-Repeat:
/* { dg-do compile } */
int main(void)
{
char x, y;
if ('A' == x) && ('B' == y)) { } /* { error "parse error" } */
if (x == 'A') && (y == 'B')) { } /* { error "parse error" } */
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-31 14:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-31 14:46 c++/10278: ICE in parser gbeauchesne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).