This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15808] New: Illegal program not detected, RM 3.9.3(10)
- From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2004 19:24:11 -0000
- Subject: [Bug ada/15808] New: Illegal program not detected, RM 3.9.3(10)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
(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