[clang] [Clang] [Sema] Support matrix types in pseudo-destructor expressions (PR #117483)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 4 06:23:53 PST 2024


================
@@ -0,0 +1,31 @@
+// RUN: %clang_cc1 -fsyntax-only -fenable-matrix -std=c++11 -verify %s
+// expected-no-diagnostics
+
+template <typename T>
+void f() {
+  T().~T();
+}
+
+template <typename T>
+void f1(T *f) {
----------------
AaronBallman wrote:

Should we have a `constexpr` test to ensure that this noop works fine in a constant expression too?

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


More information about the cfe-commits mailing list