When GNAT is operating in GNATprove_Mode the Expander_Active flag is disabled,
but we still must do things that ordinary backends expect.
gcc/ada/ChangeLog:
* sem_util.adb (Get_Actual_Subtype): Do the same for GCC and GNATprove
backends.
-- pass to the back end should contain no references to Atyp (and a
-- freeze node would contain such a reference).
- elsif not Expander_Active then
+ elsif not (Expander_Active or GNATprove_Mode) then
return Typ;
-- Else build the actual subtype