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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>:

https://gcc.gnu.org/g:f1ab4c518c72d7981edf910b1bd4ccf7970e08bb

commit r16-3029-gf1ab4c518c72d7981edf910b1bd4ccf7970e08bb
Author: Martin Uecker <uec...@tugraz.at>
Date:   Mon Jul 28 13:12:14 2025 +0200

    c: Fix ICE on invalid code involving bit fields [PR121217]

    Under some error condition we can end up with NULL_TREEs for
    the type of bitfields, which can cause an ICE when testing for
    type compatibility.  Add the missing check.

            PR c/121217

    gcc/c/ChangeLog:
            * c-typeck.cc (tagged_types_tu_compatible_p): Add check.

    gcc/testsuite/ChangeLog:
            * gcc.dg/pr121217.c: New test.

Reply via email to