www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19557] New: extern(C++, ns) and extern(C++, class) interact

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 puremagic.com
          Reporter: turkeyman 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!

--
Jan 08