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


(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


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