On Sun, 16 Mar 2025, Martin Uecker wrote:

> This is a partial fix for PR118765.
> 
> 
> Bootstrapped and regression tested on x86_64.
> 
> 
> commit 84ba284a14bb5249d923affbf3f0f95a993c3a29
> Author: Martin Uecker <uec...@tugraz.at>
> Date:   Sat Mar 1 21:32:21 2025 +0100
> 
>     c: Fix bug in typedef redefinitions of tagged types [PR118765]
>     
>     When we redefine a tagged type we incorrectly update TYPE_STUB_DECL
>     of the previously defined type instead of the new one.  Because
>     TYPE_STUB_DECL is used when determining whether two such types are
>     the same, this can cause valid typedef redefinitions to be rejected
>     later. This is only a partial fix for PR118765.
>     
>             PR c/118765
>     
>     gcc/ChangeLog:
>             * c/c-decl.cc (finish_struct,finish_enum): Swap direction when
>             copying TYPE_STRUB_DECL in redefinitions.

OK with this moved to gcc/c/ChangeLog.

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

Reply via email to