public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/15844] New: Illegal program not detected, RM 8.3(8)
@ 2004-06-06 10:20 ludovic dot brenta at insalien dot org
  2004-10-12  4:06 ` [Bug ada/15844] " pinskia at gcc dot gnu dot org
  2004-11-01  1:36 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 6+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-06-06 10:20 UTC (permalink / raw)
  To: gcc-bugs

package pak1 is
   generic
   package pak2 is
   end pak2;
end pak1;

--  RM 8.3(8)
--  An inner declaration hides any outer homograph from direct visibility.
with pak1;
package Test_247018 is
   package PAK1 is new pak1.pak2;   --ERROR: illegal reference to pak1
end Test_247018;


I expect an error message like this:
test_247018.ads:4:11: warning: this declaration hides pak1 declared at line 3
test_247018.ads:4:23: pak1 has no selector named pak2


But the compiler says nothing.

-- 
           Summary: Illegal program not detected, RM 8.3(8)
           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=15844


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-15844-286@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-15844-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-02-27 14:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-06 10:20 [Bug ada/15844] New: Illegal program not detected, RM 8.3(8) ludovic dot brenta at insalien dot org
2004-10-12  4:06 ` [Bug ada/15844] " pinskia at gcc dot gnu dot org
2004-11-01  1:36 ` pinskia at gcc dot gnu dot org
     [not found] <bug-15844-286@http.gcc.gnu.org/bugzilla/>
2007-12-13 14:12 ` sam at gcc dot gnu dot org
     [not found] <bug-15844-4@http.gcc.gnu.org/bugzilla/>
2011-08-31 10:21 ` nicolas.boulenguez at free dot fr
2014-02-27 14:34 ` nicolas.boulenguez at free dot fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).