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

            Bug ID: 116916
           Summary: Confusing error message
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simon at pushface dot org
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

Given this

   private with RP2350;

   package System.Interrupts.Xh3irq is

      type Saved_Other_Interrupt_Status is private;

   ...

   private

      use RP2350;                 ---------- indicated line

   ...

   end System.Interrupts.Xh3irq;

I get the error
   s-intxh3.ads:41:04: error: use clause not allowed in predefined spec
pointing to the indicated line.

I suspect that it means that it's illegal to 'use' a privately with'd package?
If not, what's a 'predefined spec'?

Reply via email to