www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22234] New: __traits(getLinkage) returns wrong value for


          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.

Aug 23 2021