[Issue 17352] [REG 2.075a] Internal error: ddmd/backend/elfobj.c 1739 on duplicate definition

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Apr 28 03:18:19 PDT 2017


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

--- Comment #4 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
yeah. but the frontend will check for conflicting overloads only when `foo()`
will be called. i guess this was done to gain some compilation speed by not
checking each symbol against other symbols (O(n^2), i think).

but this can be done differently, by using a hash table of all emited mangled
names. this should be amortized O(n), and virtually painless.

i mean, yes, the frontend should check for conflicting overloads even if they
weren't called anywhere.

--


More information about the Digitalmars-d-bugs mailing list