[clang] [Clang] [Sema] Support matrix types in pseudo-destructor expressions (PR #117483)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 25 07:01:35 PST 2024
================
@@ -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
More information about the cfe-commits
mailing list