This is a code cleanup and apparently has no impact on the behavior.
The Must_Not_Freeze is saved/set/restored by Preanalyze_Spec_Expression,
so it doesn't need to be set before calling that routine and apparently
doesn't need to be set after that calling that routine either.
gcc/ada/
* sem_ch13.adb (Resolve_Aspect_Expression): Don't set
Must_Not_Freeze before preanalyzing spec expressions.
-- before the actual freeze point.
when Aspect_Default_Value =>
- Set_Must_Not_Freeze (Expr);
Preanalyze_Spec_Expression (Expr, E);
when Aspect_CPU
-- relevant to the misuse of deferred constants.
when Aspect_Storage_Size =>
- Set_Must_Not_Freeze (Expr);
Preanalyze_Spec_Expression (Expr, Any_Integer);
when others =>