[PATCH] D131479: Handle explicitly defaulted consteval special members.

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 10 11:20:40 PDT 2022


aaron.ballman added inline comments.


================
Comment at: clang/test/SemaCXX/cxx2a-consteval.cpp:812
+  fail1 = good0;          // expected-error-re {{call to consteval function '{{.*::copy<.*::foo>}}::operator=' is not a constant expression}} \
+                             expected-note {{in call to '&fail1->operator=(good0)'}}
+
----------------
This likely has nothing to do with your changes here, but what the heck is with that leading `&`  in this already-pretty-surprisingly-weird note? Is that aiming for `(&fail1)->operator=(good0)` for some reason?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131479



More information about the cfe-commits mailing list