This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15605] New: Illegal program not detected, RM 8.3(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:31:55 -0000
- Subject: [Bug ada/15605] New: Illegal program not detected, RM 8.3(22)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
-- RM 8.3(22)
-- A declaration is hidden from direct visibility within the immediate
-- scope of a homograph of the declaration, if the homograph occurs
-- within an inner declarative region.
package pak1 is
subtype list is integer;
function f (list: integer)
return list; -- ERROR: subtype list is hidden by parameter
procedure foo(x : integer);
procedure p(foo: integer)
renames foo; -- ERROR: procedure foo is hidden by parameter
end pak1;
$ gcc-3.4 -c -gnatc test_244935.ads
$
--
Summary: Illegal program not detected, RM 8.3(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=15605