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.
Comment #1 by code — 2015-02-19T19:11:02Z
Comment #2 by github-bugzilla — 2015-02-21T01:58:16Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1c24d35583b1d49045013d7451c92c0752ba55e8 Merge pull request #4421 from Ingrater/fix141920 Fix Issue 14200 - Tuples not being expanded during c++ mangling.
Comment #3 by github-bugzilla — 2015-02-21T09:11:53Z
Comment #4 by github-bugzilla — 2015-06-17T21:01:00Z
Comment #5 by github-bugzilla — 2017-07-19T17:38:43Z
Commit pushed to dmd-cxx at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/1c24d35583b1d49045013d7451c92c0752ba55e8 Merge pull request #4421 from Ingrater/fix141920