[Bug c/87286] ICE on vectors of enums
rsandifo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 8 08:17:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87286
--- Comment #1 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Mon Oct 8 08:16:13 2018
New Revision: 264913
URL: https://gcc.gnu.org/viewcvs?rev=264913&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr87286.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list