https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60497

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #9)
> The self-assignment test in std::vector uses &__rhs which does ADL and tries
> to complete A.

Even if the &__rhs is changed to std::addressof(__rhs) it fails. Lookup for the
equality operator of std::allocator<UP*> also tries to complete A.

> Fixing this everywhere might take some time.

I think it's impossible.
  • [Bug libstdc++/60497] unique_pt... redi at gcc dot gnu.org via Gcc-bugs

Reply via email to