aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/java
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-12-09 10:22:26 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-12-09 10:22:26 +0100
commit64b22d699e16302724f51347db557dd5195e92ad (patch)
treee501b2ce43607aaa597187bfff44fe1bc2f7eae1 /libjava/classpath/gnu/java
parentcee0a9dd2700b9adff64b2d7e1f222671b1b2058 (diff)
downloadgcc-64b22d699e16302724f51347db557dd5195e92ad.zip
gcc-64b22d699e16302724f51347db557dd5195e92ad.tar.gz
gcc-64b22d699e16302724f51347db557dd5195e92ad.tar.bz2
c: Reject vector type bit-fields [PR123018]
The following testcase ICEs since checking has been added to TYPE_PRECISION macro. check_bitfield_type_and_width is called when attributes haven't been applied to the bit-field decl yet and so it still has INTEGER_TYPE type, while at finish_struct time it already has VECTOR_TYPE. The following patch just repeats the check_bitfield_type_and_width in there. Another option would be let handle_vector_size_attribute check for bit-fields and error out there. 2025-12-09 Jakub Jelinek <jakub@redhat.com> PR c/123018 * c-decl.cc (finish_struct): Diagnose bit-fields with vector type. * gcc.dg/pr123018.c: New test.
Diffstat (limited to 'libjava/classpath/gnu/java')
0 files changed, 0 insertions, 0 deletions