https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103562
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>: https://gcc.gnu.org/g:1250dcee74985eaeacae3b85e5ec78937225d322 commit r11-9375-g1250dcee74985eaeacae3b85e5ec78937225d322 Author: David Malcolm <dmalc...@redhat.com> Date: Fri Dec 10 09:28:48 2021 -0500 jit: set DECL_CONTEXT of RESULT_DECL [PR103562] libgccjit was failing to set the DECL_CONTEXT of function RESULT_DECLs, leading to them failing to be properly handled by the inlining machinery. Fixed thusly. gcc/jit/ChangeLog: PR jit/103562 * jit-playback.c (gcc::jit::playback::context::new_function): Set DECL_CONTEXT of the result_decl. gcc/testsuite/ChangeLog: PR jit/103562 * jit.dg/all-non-failing-tests.h: Add comment about... * jit.dg/test-pr103562.c: New test. Signed-off-by: David Malcolm <dmalc...@redhat.com>