This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18867] New: [4.0 Regression] ICE on invalid switch quantity
- From: "belyshev at lubercy dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Dec 2004 11:34:37 -0000
- Subject: [Bug c/18867] New: [4.0 Regression] ICE on invalid switch quantity
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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