[Issue 2789] Functions overloads are not checked for conflicts

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 3 10:24:11 UTC 2020


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

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #19 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Witold Baryluk from comment #18)
> Interesting, gdc 9.2 does report duplicate:
> 
> <source>:16:6: error: example.B.m at <source>:16:6 conflicts with
> example.B.m at <source>:12:6
> 
>    16 |  int m() {
> 
> 
> 
> The issue is still present in dmd nightly, dmd 2.089, ldc 1.20, ldc trunk.
> 
> Link with an example: https://godbolt.org/z/xE6fK7

This is checked in the codegen pass.  Would be better if the front-end did it
for us.

--


More information about the Digitalmars-d-bugs mailing list