Thread overview
[Issue 4152] Function alias forward reference error
Dec 17, 2022
Iain Buclaw
Nov 25
basile-z
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=4152

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=4152

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--
November 25
https://issues.dlang.org/show_bug.cgi?id=4152

basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |accepts-invalid
                 CC|                            |b2.temp@gmx.com
           Hardware|x86                         |All
                 OS|Windows                     |All

--- Comment #2 from basile-z <b2.temp@gmx.com> ---
Wouldn't the bug be that in first place the "A then B" version works ?

It seems that the compiler silently selects the first overload member.

I think that AddrExp of an overload-set should not be allowed. This is like assuming that the following code should work:

```d
void f(char){}
void f(double){}

void main()
{
    auto badAddrOfOverSet = &f;
    f(0.0);
}
```

and that is not the case.

--
December 13
https://issues.dlang.org/show_bug.cgi?id=4152

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18226

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--