public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/18221] New: Illegal program not detected, access to invisible type RM 8.2(9)
@ 2004-10-29 16:51 ludovic dot brenta at insalien dot org
  2004-10-29 17:05 ` [Bug ada/18221] " pinskia at gcc dot gnu dot org
  2004-10-30  0:46 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 5+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-10-29 16:51 UTC (permalink / raw)
  To: gcc-bugs

Debian bug #278831:

package Test_128 is

   package inner is
   private
      type T1;
      type T2 is null record;
   end inner;

   type T1_ptr is access inner.T1; -- line  9 ERROR: gnat mistakenly accepts
   type T2_ptr is access inner.T2; -- line 10 ERROR: gnat correctly rejects
end Test_128;


The output from the compiler is:

test_128.ads:10:31: "T2" is not a visible entity of "inner"
gnatmake: "test_128.ads" compilation error

As can be seen, the error at line 9 is not diagnosed.

-- 
           Summary: Illegal program not detected, access to invisible type
                    RM 8.2(9)
           Product: gcc
           Version: 3.4.2
            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=18221


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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-29 16:51 [Bug ada/18221] New: Illegal program not detected, access to invisible type RM 8.2(9) ludovic dot brenta at insalien dot org
2004-10-29 17:05 ` [Bug ada/18221] " pinskia at gcc dot gnu dot org
2004-10-30  0:46 ` pinskia at gcc dot gnu dot org
     [not found] <bug-18221-4@http.gcc.gnu.org/bugzilla/>
2011-08-31 13:30 ` nicolas.boulenguez at free dot fr
2014-02-27 18:48 ` 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).