This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10278: ICE in parser
- From: gbeauchesne at mandrakesoft dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 31 Mar 2003 14:34:11 -0000
- Subject: c++/10278: ICE in parser
- Reply-to: gbeauchesne at mandrakesoft dot com
>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 at 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 at 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: