[PATCH] D136545: [Clang] use non-template function declaration for constraints partial ordering

Yuanfang Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 22 21:42:52 PDT 2022


ychen added inline comments.


================
Comment at: clang/test/CXX/over/over.match/over.match.best/p2.cpp:10
   };
-  bool k1 = A<int>() < A<int>(); // not ordered by constraints: prefer non-rewritten form
-  bool k2 = A<float>() < A<float>(); // prefer more-constrained 'operator<=>'
----------------
Remove this case because it compiles by accident. https://eel.is/c++draft/over.match#best.general-2.6 take precedence over https://eel.is/c++draft/over.match#best.general-2.8.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136545/new/

https://reviews.llvm.org/D136545



More information about the cfe-commits mailing list