https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69219
--- Comment #2 from yuta tomino <demoonlit at panathenaia dot halfmoon.jp> --- > Yes, remove the convention Intrinsic, it doesn't make any sense here or add > pragma Inline_Always on the nested subprogram as indicated. I agree with your sense. The local subprograms would be optimized well without the pragmas. Of course, I did not write the code directly like described above. Practically, I found this bug from some instantiations of the generic packages. The real problem is that we can not use the pattern of Inline_Always and Intrinsic, in writing any generic package, to reduce the code size for instantiating it in the library-level, because of also allowing use of it in the nested scope.