https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67205

            Bug ID: 67205
           Summary: Unnecessary trampolines for nested packages
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fweimer at redhat dot com
                CC: polacek at redhat dot com
  Target Milestone: ---

Created attachment 36179
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36179&action=edit
trampoline.adb

The attached example requires generation of trampolines.  This may be due to
bug 57999, but I think a front-end fix would be more reliable.

As an additional surprise, pragma Restrictions (No_Implicit_Dynamic_Code) does
not cause compilation to fail.  The error is only detected at binding time, and
-Wtrampolines is needed to find the culprit.

Reply via email to