[Issue 14200] New: C++ mangling issue with expanded tuples

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Feb 19 10:40:32 PST 2015


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

          Issue ID: 14200
           Summary: C++ mangling issue with expanded tuples
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: code at benjamin-thaut.de

The following triggers a ICE:

template Tuple(T...)
{
  alias Tuple = T;
}

extern(C++) void badFunc(Tuple!(int));
pragma(msg, typeof(badFunc));

void main(string[] args)
{
  auto p = &badFunc;
}

Error: ICE: Unsupported type (int)

It seems the C++ mangling does not correctly expand tuples.

--


More information about the Digitalmars-d-bugs mailing list