https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85965
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Hedayat Vatankhah from comment #12) > AFAIK, this is a completely valid C++ code, I don't think that's actually clear. The standard doesn't specify when the comparison object must be invocable, so I think it's conforming (but not very user friendly) to reject that code, and the original example in this bug report.