[Issue 19557] New: extern(C++, ns) and extern(C++, class) interact weird

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 8 19:47:19 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19557

          Issue ID: 19557
           Summary: extern(C++, ns) and extern(C++, class) interact weird
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

This error:

  extern(C++, "ns")
  extern(C++, class)
  struct test {}

  > Error: redundant linkage `extern (C++)`

But this works:

  extern(C++, class)
  extern(C++, "ns")
  struct test {}

No problem!

--


More information about the Digitalmars-d-bugs mailing list