https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123018

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <[email protected]>:

https://gcc.gnu.org/g:64b22d699e16302724f51347db557dd5195e92ad

commit r16-5985-g64b22d699e16302724f51347db557dd5195e92ad
Author: Jakub Jelinek <[email protected]>
Date:   Tue Dec 9 10:22:26 2025 +0100

    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  <[email protected]>

            PR c/123018
            * c-decl.cc (finish_struct): Diagnose bit-fields with vector type.

            * gcc.dg/pr123018.c: New test.

Reply via email to