August 23, 2021 [Issue 22234] New: __traits(getLinkage) returns wrong value for extern(System) functions | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22234 Issue ID: 22234 Summary: __traits(getLinkage) returns wrong value for extern(System) functions Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: destructionator@gmail.com extern(System) void foo() {} pragma(msg, __traits(getLinkage, foo)); Prints "C" but the spec <https://dlang.org/spec/traits.html#getLinkage> says it can be "System" and thus should be since that's what is in the source. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply