================ @@ -51,18 +51,18 @@ namespace disabled_dtor { union disable_dtor { T val; template<typename...U> - disable_dtor(U &&...u) : val(forward<U>(u)...) {} + disable_dtor(U &&...u) : val(forward<U>(u)...) {} // expected-error {{attempt to use a deleted function}} ---------------- efriedma-quic wrote:
I think this error is correct: if the body of the constructor throws, we call the destructor for val. https://github.com/llvm/llvm-project/pull/128866 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits