[Bug ada/15808] New: Illegal program not detected, RM 3.9.3(10)

ludovic dot brenta at insalien dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 3 19:24:00 GMT 2004


(Debian bug #246392)


-- RM 3.9.3(10)
-- For an abstract type declared in a visible part, an abstract
-- primitive subprogram shall not be declared in the private part,
-- unless it is overriding an abstract subprogram implicitly
-- declared in the visible part.

generic
package Test_246392 is
   type T1 is abstract tagged private;
private
   type T1 is abstract tagged null record;
   procedure p (x: T1) is abstract;  --ERROR: abstract subprogram not visible
end Test_246392;


I expect an error like this:
test_246392.ads:12:26: private abstract subprogram does not override a public
abstract subprogram


But I get nothing.

-- 
           Summary: Illegal program not detected, RM 3.9.3(10)
           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=15808



More information about the Gcc-bugs mailing list