Bug 22234 – __traits(getLinkage) returns wrong value for extern(System) functions

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-08-23T13:59:47Z
Last change time
2022-04-12T12:06:58Z
Keywords
pull
Assigned to
No Owner
Creator
Adam D. Ruppe

Comments

Comment #0 by destructionator — 2021-08-23T13:59:47Z
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.
Comment #1 by dlang-bot — 2022-01-24T12:52:51Z
@dkorpel created dlang/dlang.org pull request #3185 "Fix issue 22234 - __traits(getLinkage) returns wrong value for extern(System) functions" fixing this issue: - Fix issue 22234 - __traits(getLinkage) returns wrong value for extern(System) functions https://github.com/dlang/dlang.org/pull/3185
Comment #2 by dlang-bot — 2022-04-03T10:46:45Z
@dkorpel created dlang/dmd pull request #13942 "Fix issue 22234 - traits(getLinkage) returns wrong value for extern(System) functions" fixing this issue: - Fix issue 22234 - traits(getLinkage) returns wrong value for extern(System) functions https://github.com/dlang/dmd/pull/13942
Comment #3 by dlang-bot — 2022-04-12T12:06:58Z
dlang/dmd pull request #13942 "Fix issue 22234 - traits(getLinkage) returns wrong value for extern(System) functions" was merged into master: - e194e648b2cacd6378774e9a713554d588a88920 by Dennis Korpel: Fix issue 22234 - traits(getLinkage) returns wrong value for extern(System) functions https://github.com/dlang/dmd/pull/13942