[PATCH] D151720: [clang][ExprConstant] Fix display of syntactically-invalid note for member function calls

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 30 08:59:07 PDT 2023


erichkeane added inline comments.


================
Comment at: clang/test/SemaCXX/constant-expression-cxx11.cpp:994
+static_assert(sobj.f(), ""); // expected-error {{constant expression}} expected-note {{in call to 'sobj.f()'}}
+static_assert(sptr->f(), ""); // expected-error {{constant expression}} expected-note {{in call to 'sobj.f()'}}
+static_assert(slref.f(), ""); // expected-error {{constant expression}} expected-note {{in call to 'sobj.f()'}}
----------------
So I think this is just trading 1 'wrong' for another.  We should be looking to see if we can figure out whether this is called with an arrow or not.  I don't have a good way of doing that unfortunately, but perhaps Aaron has an idea?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151720



More information about the cfe-commits mailing list