This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/57382] New: Illegal type conversion to access-interface-class inside generic not detected
- From: "adam at irvine dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 May 2013 23:29:50 +0000
- Subject: [Bug ada/57382] New: Illegal type conversion to access-interface-class inside generic not detected
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57382
Bug ID: 57382
Summary: Illegal type conversion to access-interface-class
inside generic not detected
Product: gcc
Version: 4.5.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: adam at irvine dot com
Created attachment 30170
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30170&action=edit
source code
Inside a generic, GNAT incorrectly accepts a type conversion where the target
type is access Interface_Type'Class and the argument type is a non-access type.