[Issue 15389] New: extern(C++) forward referencing problem

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Nov 29 02:13:55 PST 2015


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

          Issue ID: 15389
           Summary: extern(C++) forward referencing problem
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

This doesn't work, but it should:
  alias X = NS.X;
  extern (C++, NS) struct X {}

This works fine:
  extern (C++, NS) struct X {}
  alias X = NS.X;

--


More information about the Digitalmars-d-bugs mailing list