This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/16078] New: Legal program rejected, visible declaration not seen


generic
package pak1 is
   x: integer;
end pak1;

with pak1;
generic
   with package new_pak1 is new pak1;
   use new_pak1;
package pak2 is
end pak2;

generic
package pak2.pak3 is
   y: integer := x;
end pak2.pak3;

with Pak2.Pak3;
procedure Test_247572 is
   package P is new Pak2.Pak3;
begin
   null;
end Test_247572;


test_247572.adb:4:21: invalid prefix in selected component "Pak2"
gnatmake: "test_247572.adb" compilation error

-- 
           Summary: Legal program rejected, visible declaration not seen
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic dot brenta at insalien dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16078


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]