#247018 Illegal program not detected, RM 8.3(8)

Package:
gnat-12
Source:
gcc-12
Description:
GNU Ada compiler
Submitter:
Date:
2026-01-12 17:39:14 UTC
Severity:
normal
Tags:
#247018#5
Date:
2004-05-02 20:36:26 UTC
From:
To:
package pak1 is
   generic
   package pak2 is
   end pak2;
end pak1;

#247018#20
Date:
2008-12-30 20:05:18 UTC
From:
To:
found 247018 4.3.2-2
found 247019 4.3.2-2
thanks

#247018#31
Date:
2009-08-04 19:31:10 UTC
From:
To:
compiling test_60 with gnat-4.4 I get this :
gnatmake test_60.ads
gcc-4.4 -c test_60.ads
test_60.ads:6:24: expect name of generic package in instantiation
gnatmake: "test_60.ads" compilation error

here is the code I have used :
package pak1 is
   generic
   package pak2 is
   end pak2;
end pak1;

#247018#36
Date:
2009-08-05 08:56:51 UTC
From:
To:
No, your test does not correspond to the bug; please try with the exact code to
reproduce the bug (i.e. "new pak1.pak2", not "new pak1").

#247018#41
Date:
2009-08-06 13:57:30 UTC
From:
To:
found 247018 4.4.1-1
thanks

Sorry for the bad copy and paste :(