https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128518
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Uecker <[email protected]>: https://gcc.gnu.org/g:4f0d0a2c472f5270b066b707aa280ee02e7c9a01 commit r17-6074-g4f0d0a2c472f5270b066b707aa280ee02e7c9a01 Author: Martin Uecker <[email protected]> Date: Sun Nov 8 19:36:49 2026 +0100 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.
