dip1000 + pure is a DEADLY COMBO

Per Nordlöw per.nordlow at gmail.com
Fri May 14 09:43:53 UTC 2021


On Friday, 14 May 2021 at 09:41:01 UTC, Dennis wrote:
> On Friday, 14 May 2021 at 09:15:18 UTC, Per Nordlöw wrote:
>> fails to compile with dmd master using `-dip1000` as
>>
>>     main.d(9,20): Error: cannot take address of local `x` in 
>> `@safe` function `f`
>
> That's the old error message, I don't understand how you get 
> that with `-dip1000`, I can only reproduce that by forgetting 
> that flag.

Are you using dmd master?


More information about the Digitalmars-d mailing list