On Tue, 29 Jul 2025, Martin Uecker wrote:

> Fixes an ICE on invalid code (15/16 regression).
> 
> Bootstrapped and regression tested on x86_64.
> 
> 
>     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/pr121271.c: New test.

OK.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to