Message ID | 20131010125244.GA767@adacore.com |
---|---|
State | New |
Headers | show |
Index: sem_type.adb =================================================================== --- sem_type.adb (revision 203342) +++ sem_type.adb (working copy) @@ -2611,8 +2611,13 @@ begin AI := First (Interface_List (Parent (Target_Typ))); + + -- The progenitor itself may be a subtype of an interface type. + while Present (AI) loop - if Etype (AI) = Iface_Typ then + if Etype (AI) = Iface_Typ + or else Base_Type (Etype (AI)) = Iface_Typ + then return True; elsif Present (Interfaces (Etype (AI)))