www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14200] New: C++ mangling issue with expanded tuples


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

Feb 19 2015