Bug 14200 – C++ mangling issue with expanded tuples
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2015-02-19T18:40:00Z
Last change time
2017-07-19T17:38:43Z
Assigned to
nobody
Creator
code
Comments
Comment #0 by code — 2015-02-19T18:40:32Z
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.