[Issue 20565] Local template function in static foreach yields link error LNK1179 on fresh compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 2 10:48:10 UTC 2021


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
MS-COFF is alone in not allowing two identical COMDATs from residing in the
same object file, which is what is happening here. The two identical COMDATs
are still generated for other targets, and the linker helpfully just merges
them.

Can't fix the Microsoft linker, so I'll have to find out just why the two
COMDATs are being generated and fix it.

--


More information about the Digitalmars-d-bugs mailing list