[PATCH] D104680: [clang] Eliminate relational function pointer comparisons in all C++ modes

Matheus Izvekov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 22 08:15:38 PDT 2021


mizvekov added inline comments.


================
Comment at: clang/test/Parser/cxx-template-argument.cpp:28
+    (void)(&t<int>==p);    // expected-error {{use '> ='}}
+    (void)(&t<int>>=p);    // expected-error {{use '> >'}} expected-error {{ordered comparison of function pointers}}
+    (void)(&t<S<int>>>=p); // expected-error {{ordered comparison of function pointers}}
----------------
So here we are recovering from the parser error into this type check error.
Maybe there is something that could be improved as a follow up task so we don't get a double error.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104680



More information about the cfe-commits mailing list