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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Looks like this is a dup of PR109751, which has been fixed for GCC 13.3 / 14.

A workaround for earlier GCC is to turn the problematic constrained hidden
friend into a template:

  template <int = 0>
  friend auto operator==(list const& l, list const& r)
  ...

This prevents GCC from overeagerly checking the function's constraints.

*** This bug has been marked as a duplicate of bug 109751 ***

Reply via email to