PR c/18867
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Dec 2004 00:12:03 +0000 (00:12 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Dec 2004 00:12:03 +0000 (00:12 +0000)
commit98126a6d2335fa12eab11340c41d3ede5c26e770
tree201a6333e6bc0735dfcd4a3615016230541afc32
parenta61fe375bda4c1d4a5c1a842e7ea6952205af9bf
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91837 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/20041207.c [new file with mode: 0644]