The example (which I will upload directly) fails as follows: grendel:~/tmp/visibility simon$ gnatmake -c -u -f actual-s.ads gcc -c actual-s.ads actual-s.ads:4:01: instantiation error at basis-second.adb:4 actual-s.ads:4:01: no selector "Started" for type "Base" defined at basis-second.ads:4, instance at line 4 gnatmake: "actual-s.ads" compilation error I think the code should have compiled, because the selector Started is defined in the private part of the parent package Basis. However grendel:~/tmp/visibility simon$ gnatmake -c -u -f basis-second.adb gcc -c basis-second.adb grendel:~/tmp/visibility simon$ In other words, the generic compiles but the instantiation doesn't, which is not meant to happen.
Created attachment 9861 [details] Demonstration of problem
Same message on mainline, however I'm not able to say wether it's a bug or not.
Still there with 4.3.2 and gcc version 4.4.0 20081228 (experimental) [trunk revision 142939] (GCC) Arnaud, do you have a generic expert handy to check wether this code is legal or not? generic compiling but not an instance is quite rare in the language. Thanks!
Still there with gcc version 4.5.0 20100104 (experimental) (GCC) (r155633)
Fixed in 4.6.0. Am I allowed/able to mark this RESOLVED?
Fixing then, thanks.