| Thread overview | |||||
|---|---|---|---|---|---|
|
June 09, 2015 [Issue 4152] Function alias forward reference error | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=4152 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |D2 -- | ||||
December 17, 2022 [Issue 4152] Function alias forward reference error | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=4152 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P3 -- | ||||
November 25 [Issue 4152] Function alias forward reference error | ||||
|---|---|---|---|---|
| ||||
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. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply