The compiler rejects performing a dispatching call using the
prefix notation when the prefix of the call is a mutably
tagged class-wide type object.
gcc/ada/ChangeLog:
* sem_ch4.adb (Try_Object_Operation): Handle mutably tagged
class-wide type prefix.
-- Start of processing for Try_Object_Operation
begin
+ if Is_Class_Wide_Equivalent_Type (Obj_Type) then
+ Obj_Type := Corresponding_Mutably_Tagged_Type (Obj_Type);
+ end if;
+
Analyze_Expression (Obj);
-- Analyze the actuals if node is known to be a subprogram call