In some cases, a legal type conversion in a generic package is correctly
accepted but the corresponding type conversion in an instance of the generic
is incorrectly rejected.
gcc/ada/
PR ada/114593
* sem_res.adb (Valid_Conversion): Test In_Instance instead of
In_Instance_Body.
-- If it was legal in the generic, it's legal in the instance
- elsif In_Instance_Body then
+ elsif In_Instance then
return True;
-- If both are tagged types, check legality of view conversions