[clang] [Clang][Interp] Fix display of syntactically-invalid note for member function calls (PR #102170)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 7 07:51:28 PDT 2024


================
@@ -335,7 +335,7 @@ namespace InitializerTemporaries {
 
   constexpr int f() {
     S{}; // ref-note {{in call to 'S{}.~S()'}} \
-         // expected-note {{in call to '&S{}->~S()'}}
+         // expected-note {{in call to '~S()'}}
----------------
tbaederr wrote:

This looks wrong in a different way now. Why is the instance missing?

https://github.com/llvm/llvm-project/pull/102170


More information about the cfe-commits mailing list