Function attribute deduction depends on compile invocation
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 14 16:51:24 PDT 2017
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.
More information about the Digitalmars-d
mailing list