This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15606] New: Legal program rejected, RM 8.2(22)
- From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2004 09:34:50 -0000
- Subject: [Bug ada/15606] New: Legal program rejected, RM 8.2(22)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
-- 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