[Issue 24415] Can't call public function preceded by private template overload

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 25 19:12:17 UTC 2024


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

--- Comment #7 from Dlang Bot <dlang-bot at dlang.rocks> ---
@ibuclaw created dlang/phobos pull request #8988 "merge stable" mentioning this
issue:

- Work around bugzilla issue 24415 - only doesn't work with elements with a
copy constructor.

  Since the compiler is treating the auto-generated copy-constructor for
  OnlyResult as private (thus rendering it useless outside of
  std.range.package), this commit adds an explicit one and makes it
  public. Once the dmd bug has been fixed, the explicit copy constructor
  should be removed.

https://github.com/dlang/phobos/pull/8988

--


More information about the Digitalmars-d-bugs mailing list