diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-12 12:15:46 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-12 12:15:46 +0000 |
| commit | a10163583fbab3421e7ac7439c6ccd10dfbb3815 (patch) | |
| tree | bfe239499189c6a61ac5e0b1e233ec9b6e2e2770 /gcc/c-typeck.c | |
| parent | c223dc70b75caab21a074ea7ccb1ea02c89307dc (diff) | |
| download | ppe42-gcc-a10163583fbab3421e7ac7439c6ccd10dfbb3815.tar.gz ppe42-gcc-a10163583fbab3421e7ac7439c6ccd10dfbb3815.zip | |
* c-decl.c (grokdeclarator): Use INTEGRAL_TYPE_P.
* c-typeck.c (c_start_case): Likewise.
testsuite:
* gcc.c-torture/compile/20010610-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43257 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
| -rw-r--r-- | gcc/c-typeck.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 5653ae59b68..cf995334b9a 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -7077,8 +7077,7 @@ c_start_case (exp) code = TREE_CODE (TREE_TYPE (exp)); type = TREE_TYPE (exp); - if (code != INTEGER_TYPE - && code != ENUMERAL_TYPE + if (! INTEGRAL_TYPE_P (type) && code != ERROR_MARK) { error ("switch quantity not an integer"); |

