[Bug c/18867] New: [4.0 Regression] ICE on invalid switch quantity
belyshev at lubercy dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 7 11:34:00 GMT 2004
current mainline crashes on this invalid code:
----------------------------------------------------------------------------------------
void f()
{
float x;
switch (x) {case 0: break;};
}
----------------------------------------------------------------------------------------
bug.c: In function `f':
bug.c:4: error: switch quantity not an integer
bug.c:4: internal compiler error: Segmentation fault
: Search converges between 2004-07-20-trunk (#491) and 2004-07-21-trunk (#492).
--
Summary: [4.0 Regression] ICE on invalid switch quantity
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18867
More information about the Gcc-bugs
mailing list