The OK_Convert_To function already sets the Etype of its result.
gcc/ada/ChangeLog:
* exp_imgv.adb (Expand_Value_Attribute): Do not call Set_Etype on N
after rewriting it by means of OK_Convert_To.
Name => New_Occurrence_Of (RTE (Vid), Loc),
Parameter_Associations => Args)));
- Set_Etype (N, Btyp);
Analyze_And_Resolve (N, Btyp);
return;
Name => New_Occurrence_Of (RTE (Vid), Loc),
Parameter_Associations => Args)));
- Set_Etype (N, Btyp);
Analyze_And_Resolve (N, Btyp);
return;
end if;