digitalmars.D.bugs - [Issue 20745] New: __traits(getLinkage, T) returns "D" for extern
- d-bugmail puremagic.com (22/22) Apr 17 2020 https://issues.dlang.org/show_bug.cgi?id=20745
https://issues.dlang.org/show_bug.cgi?id=20745 Issue ID: 20745 Summary: __traits(getLinkage, T) returns "D" for extern (C) struct T Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: shigekikarita gmail.com The following code reproduces the wrong linkage result. --- // https://wandbox.org/permlink/0kSYkUvi82gW9kRR extern (C) struct T {} void main() { assert(__traits(getLinkage, T) == "D"); // should be C } --
Apr 17 2020