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

Takuya Shimizu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 30 08:30:27 PDT 2023


hazohelet created this revision.
hazohelet added reviewers: aaron.ballman, erichkeane, tbaeder, cjdb.
Herald added a project: All.
hazohelet requested review of this revision.
Herald added a project: clang.

This patch changes the display of member function calls in constexpr evaluator diagnostics from arrow operator to dot operator.
This avoids the syntactical invalidness in notes previously caused by the display of `&` operator
(lack of parentheses and reference of rvalue)

Fixes https://github.com/llvm/llvm-project/issues/57081


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151720

Files:
  clang/docs/ReleaseNotes.rst
  clang/lib/AST/ExprConstant.cpp
  clang/test/AST/Interp/constexpr-nqueens.cpp
  clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp
  clang/test/CXX/temp/temp.param/p8-cxx20.cpp
  clang/test/SemaCXX/constant-expression-cxx11.cpp
  clang/test/SemaCXX/cxx2a-consteval.cpp
  clang/test/SemaCXX/deduced-return-type-cxx14.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151720.526632.patch
Type: text/x-patch
Size: 9344 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230530/c3eb2b57/attachment-0001.bin>


More information about the cfe-commits mailing list