public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/31415]  New: Illegal program not detected, Ada 2005, 3.9.4(12/2) and 7.5(6.1/2)
@ 2007-03-31 22:04 ludovic at ludovic-brenta dot org
  2007-06-22 10:44 ` [Bug ada/31415] " charlet at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: ludovic at ludovic-brenta dot org @ 2007-03-31 22:04 UTC (permalink / raw)
  To: gcc-bugs

Debian Bug#416973

In the following program, the declaration of T3 is illegal because it
extends a limited type (T1) and a nonlimited interface (T2).

-- compiled -gnat05
-- error not detected
package pak1 is
   -- RM 3.9.4(12/2) and 7.5(6.1/2)
   -- check that both ancestors must be either limited or nonlimited
   type T1 is tagged limited null record;
   type T2 is interface;
   type T3 is new pak1.T1 and pak1.T2 with null record;  --ERROR: mixed types
end pak1;

To reproduce:
gnatmake -gnat05 pak1.ads

Error expected:
pak1.ads:8:30: all ancestors must be either limited or nonlimited


-- 
           Summary: Illegal program not detected, Ada 2005, 3.9.4(12/2) and
                    7.5(6.1/2)
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic at ludovic-brenta dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31415


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug ada/31415] Illegal program not detected, Ada 2005, 3.9.4(12/2) and 7.5(6.1/2)
  2007-03-31 22:04 [Bug ada/31415] New: Illegal program not detected, Ada 2005, 3.9.4(12/2) and 7.5(6.1/2) ludovic at ludovic-brenta dot org
@ 2007-06-22 10:44 ` charlet at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: charlet at gcc dot gnu dot org @ 2007-06-22 10:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from charlet at gcc dot gnu dot org  2007-06-22 10:44 -------
This now generates a proper error on trunk.

Arno


-- 

charlet at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31415


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-22 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-31 22:04 [Bug ada/31415] New: Illegal program not detected, Ada 2005, 3.9.4(12/2) and 7.5(6.1/2) ludovic at ludovic-brenta dot org
2007-06-22 10:44 ` [Bug ada/31415] " charlet at gcc dot gnu dot org

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