This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15841] New: Illegal program not detected, RM 3.9(17)
- 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: 6 Jun 2004 10:16:13 -0000
- Subject: [Bug ada/15841] New: Illegal program not detected, RM 3.9(17)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
-- RM 3.9(17)
-- Given a prefix X that is of a class-wide tagged type
with ada.tags;
package Test_247015 is
type T1 is tagged null record;
x: T1;
y: ada.tags.tag := T1(x)'Tag; --ERROR: prefix of 'tag must be classwide
end Test_247015;
I expect an error message like this:
test_247015.ads:7:22: "T1(x)" is not a classwide tagged type
But I get nothing.
--
Summary: Illegal program not detected, RM 3.9(17)
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=15841