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

Does that work too?
```
template <typename T>
void f1(T *f) {
  T->~T();
  (*T).~T();
}
void test(mat4 *m) {
 f1(m);
}
```

https://github.com/llvm/llvm-project/pull/117483
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to