https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69219
--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Mon Jan 18 10:27:10 2016 New Revision: 232498 URL: https://gcc.gnu.org/viewcvs?rev=232498&root=gcc&view=rev Log: PR ada/69219 * gcc-interface/trans.c (check_inlining_for_nested_subprog): Consider the parent function instead of the current function in order to issue the warning or the error. Add guard for ignored functions. Added: trunk/gcc/testsuite/gnat.dg/inline12.adb Modified: trunk/gcc/ada/ChangeLog trunk/gcc/ada/gcc-interface/trans.c trunk/gcc/testsuite/ChangeLog