This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15846] New: Illegal program not detected, self renames
- 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:22:40 -0000
- Subject: [Bug ada/15846] New: Illegal program not detected, self renames
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
package Test_247020 is
type T1 is null record;
function "=" (left, right : in T1) return boolean
renames Test_247020."="; --ERROR: self-rename
end Test_247020;
I expect an error message like this:
test_247020.ads:6:24: self-referencing renaming declaration
But the compiler remains silent.
--
Summary: Illegal program not detected, self renames
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=15846