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/15605] New: Illegal program not detected, RM 8.3(22)


-- 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


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