← Back to index
|
Original Bugzilla link
Bug 9756 – "duplicate COMDAT" with templated functions in static foreach
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2013-03-19T02:53:00Z
Last change time
2015-07-26T13:19:59Z
Keywords
link-failure
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0
by dlang-bugzilla — 2013-03-19T02:53:54Z
template Tuple(T...) { alias T Tuple; } void main() { foreach (n; Tuple!(1, 2, 3)) { void f()() {} f(); } } Happens only on Win64. Possibly related to issue 9748.
Comment #1
by r.sagitario — 2014-01-09T00:15:36Z
Multiple COMDATs are written on all platforms, but only the MS linker complains about them being in the same object file.
Comment #2
by k.hara.pg — 2015-07-26T13:19:59Z
*** This issue has been marked as a duplicate of issue 9748 ***