diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2018-10-08 08:16:13 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2018-10-08 08:16:13 +0000 |
commit | 8656dafa39de8e537940433220e8f5db3bf7a614 (patch) | |
tree | 165aa7158bf1941139ea902e141af4b3c83f48ba /gcc/tree-ssa-loop-ch.c | |
parent | 090680870b633853e40a750036dab2b3df63dd18 (diff) | |
download | gcc-8656dafa39de8e537940433220e8f5db3bf7a614.zip gcc-8656dafa39de8e537940433220e8f5db3bf7a614.tar.gz gcc-8656dafa39de8e537940433220e8f5db3bf7a614.tar.bz2 |
Don't ICE on vectors of enums (PR 87286)
We've traditionally allowed vectors of enums (not sure if that's
deliberate) but vector_types_compatible_elements_p checked for
INTEGER_TYPE rather than INTEGRAL_TYPE_P.
2018-10-08 Richard Sandiford <richard.sandiford@arm.com>
gcc/c-family/
PR c/87286
* c-common.c (vector_types_compatible_elements_p): Use
INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
gcc/testsuite/
PR c/87286
* gcc.dg/pr87286.c: New test.
From-SVN: r264913
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
0 files changed, 0 insertions, 0 deletions