================ @@ -0,0 +1,22 @@ +// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s +// expected-no-diagnostics + +template <typename T> static void destroy() { + T t; + ++t; +} + +struct Incomplete; + +template <typename = int> struct HasD { + ~HasD() { destroy<Incomplete*>(); } +}; + +struct HasVT { + virtual ~HasVT(); +}; + +struct S : HasVT { + HasD<> v; +}; + ---------------- Fznamznon wrote:
I don't think there NO tests checking that complain? https://github.com/llvm/llvm-project/pull/102605 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits