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/15606] New: Legal program rejected, RM 8.2(22)


-- RM 8.2(2)
-- The immediate scope of a declaration ... starts at the end of
-- the generic_instantiation if an instance.
generic
procedure foo;

procedure foo is
begin
   null;
end foo;

with foo;
package Test_244936 is
   procedure FOO is new foo;        -- OK
end Test_244936;

gnatmake -q test_244936
test_244936.ads:4:25: "foo" is hidden within declaration of instance

-- 
           Summary: Legal program rejected, RM 8.2(22)
           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
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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