-- (Note that the same is done for controlling access
-- parameter cases in function Access_Definition.)
- Set_Has_Delayed_Freeze (Current_Scope);
+ if not Is_Thunk (Current_Scope) then
+ Set_Has_Delayed_Freeze (Current_Scope);
+ end if;
end if;
end if;