[Bug ada/16213] New: Illegal program not detected, RM 10.1.1
ludovic dot brenta at insalien dot org
gcc-bugzilla@gcc.gnu.org
Fri Jun 25 22:33:00 GMT 2004
-- RM 10.1.1
-- A library_item is a compilation unit that is [...], or renaming
-- of a library unit.
-- integer'succ and false aren't library units, so can't be
-- renamed in library_items.
function f1(x: integer) return integer renames integer'succ; --ERROR
with F1;
function Test_251268 return boolean renames false; --ERROR
gnatmake test_251268 does not produce any error message.
--
Summary: Illegal program not detected, RM 10.1.1
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=16213
More information about the Gcc-bugs
mailing list