[Issue 13783] Function overload with rvalue `inout` parameter not selected when `enum` parameter implicitly converted to its base type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Dec 6 08:54:10 PST 2014


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

--- Comment #3 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c0891db6300eec0f6a088f4d021c81c4457a6dfa
fix Issue 13783 - Function overload with rvalue `inout` parameter not selected
when `enum` parameter implicitly converted to its base type

The root issue is a flaw in the overload resolution mechanism.
For the function `auto f(ref T);`, an lvalue of `enum E : T` should not match.

https://github.com/D-Programming-Language/dmd/commit/b27e1501a970c158f78874bb6f71355b7d6f7c5a
Merge pull request #4177 from 9rnsr/fix13783

Issue 13783 - Function overload with rvalue `inout` parameter not selected when
`enum` parameter implicitly converted to its base type

--


More information about the Digitalmars-d-bugs mailing list