Message ID | 20141023102708.GA22133@adacore.com |
---|---|
State | New |
Headers | show |
Index: sem_ch6.adb =================================================================== --- sem_ch6.adb (revision 216584) +++ sem_ch6.adb (working copy) @@ -9946,7 +9946,9 @@ -- (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;