[Bug c/18867] [4.0 Regression] ICE on invalid switch quantity
-- What|Removed |Added Known to fail||4.0.0 Known to work||3.4.4 Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18867
[Bug c/18867] [4.0 Regression] ICE on invalid switch quantity
-- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |steven at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18867
[Bug c/18867] [4.0 Regression] ICE on invalid switch quantity
--- Additional Comments From steven at gcc dot gnu dot org 2004-12-07 13:05 --- Test this: Index: c-common.c === RCS file: /cvs/gcc/gcc/gcc/c-common.c,v retrieving revision 1.589 diff -u -p -r1.589 c-common.c --- c-common.c 29 Nov 2004 23:11:23 - 1.589 +++ c-common.c 7 Dec 2004 13:04:57 - @@ -1467,7 +1467,7 @@ check_case_bounds (tree type, tree orig_ tree case_high = case_high_p ? *case_high_p : case_low; /* If there was a problem with the original type, do nothing. */ - if (orig_type == error_mark_node) + if (! INTEGRAL_TYPE_P (orig_type)) return true; min_value = TYPE_MIN_VALUE (orig_type); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18867
[Bug c/18867] [4.0 Regression] ICE on invalid switch quantity
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-08 00:12 --- Subject: Bug 18867 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2004-12-08 00:12:06 Modified files: gcc: c-typeck.c ChangeLog gcc/testsuite : ChangeLog Added files: gcc/testsuite/gcc.dg/noncompile: 20041207.c Log message: PR c/18867 * c-typeck.c (c_start_case): Set orig_type to error_mark_node when the type of the controlling expression is not a valid type. testsuite/ * gcc.dg/noncompile/20041207.c: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gccr1=1.402r2=1.403 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gccr1=2.6738r2=2.6739 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/noncompile/20041207.c.diff?cvsroot=gccr1=NONEr2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gccr1=1.4719r2=1.4720 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18867
[Bug c/18867] [4.0 Regression] ICE on invalid switch quantity
--- Additional Comments From steven at gcc dot gnu dot org 2004-12-08 00:15 --- . -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18867
[Bug c/18867] [4.0 Regression] ICE on invalid switch quantity
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-08 07:41 --- Subject: Bug 18867 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2004-12-08 07:41:32 Modified files: gcc/testsuite : ChangeLog gcc/testsuite/gcc.dg/noncompile: 20041207.c Log message: PR c/18867 * gcc.dg/noncompile/20041207.c: Fix typo in dg directive. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gccr1=1.4720r2=1.4721 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/noncompile/20041207.c.diff?cvsroot=gccr1=1.1r2=1.2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18867