On Sun, 8 Nov 2026, Martin Uecker wrote:

>     c: nested function address passed without a trampoline [PR128518]
>     
>     When marking a function as requiring a non-local context, we returned
>     early from mark_decl_used when the function was already marked.  This
>     is wrong because we also have to mark nested parent functions, and
>     for a new context we may have to mark parents up to a higher level
>     than before.
>     
>             PR c/128518
>     
>     gcc/c/ChangeLog:
>             * c-typeck.cc (mark_decl_used): Fix logic.
>     
>     gcc/testsuite/ChangeLog:
>             * gcc.dg/pr128518.c: New test.

OK.

-- 
Joseph S. Myers
[email protected]

Reply via email to