[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 07:36:02 PDT 2024


================
@@ -67,15 +68,19 @@ struct Bar {
   template <typename U, int num>
   constexpr int fail2() const { return 1 / 0; } // expected-warning {{division by zero}} \
                                                 // expected-note {{division by zero}}
+#ifndef NEW_CONST_INTERP
   template <typename ...Args>
   constexpr int fail3(Args... args) const { return 1 / 0; } // expected-warning {{division by zero}} \
                                                 // expected-note {{division by zero}}
----------------
tbaederr wrote:

The output looks the same here: https://godbolt.org/z/PP868Eh87

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


More information about the cfe-commits mailing list