[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
Thu Aug 8 12:12:50 PDT 2024
================
@@ -46,7 +46,7 @@ constexpr int div(int a, int b) {
return a / b; // both-note {{division by zero}}
};
- return f(); // expected-note {{in call to '&f->operator()()'}} \
+ return f(); // expected-note {{in call to 'f.operator()()'}} \
----------------
tbaederr wrote:
```suggestion
return f(); // both-note {{in call to 'f.operator()()'}} \
```
https://github.com/llvm/llvm-project/pull/102170
More information about the cfe-commits
mailing list