Function attribute deduction depends on compile invocation
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jul 15 13:41:27 PDT 2017
On 7/14/2017 4:51 PM, Walter Bright wrote:
> On 7/14/2017 9:53 AM, Johan Engelen wrote:
>> What happens in that in one kind of compilation, @nogc is deduced for a
>> function. But in another compilation, it isn't. Thus references to the
>> function will have the wrong mangling, and linker errors happen:
>> https://issues.dlang.org/show_bug.cgi?id=17541
>
> At the moment you can work around it by explicitly adding the annotation.
https://github.com/dlang/dmd/pull/6995
More information about the Digitalmars-d
mailing list