[clang] 69c0af3 - CWG 1394: Incomplete types as parameters of deleted functions
James Y Knight via cfe-commits
cfe-commits at lists.llvm.org
Sun May 22 07:26:37 PDT 2022
Author: James Y Knight
Date: 2022-05-22T10:22:13-04:00
New Revision: 69c0af3de224131cca844debd12872d4d1686800
URL: https://github.com/llvm/llvm-project/commit/69c0af3de224131cca844debd12872d4d1686800
DIFF: https://github.com/llvm/llvm-project/commit/69c0af3de224131cca844debd12872d4d1686800.diff
LOG: CWG 1394: Incomplete types as parameters of deleted functions
Follow-up to previous commit: Add a DR test-case so the
make_cxx_dr_status automation works.
Bug: #52802
Fixes: 50b1faf5c188956fb59ea7d9f9d470591771aedb
Added:
Modified:
clang/test/CXX/drs/dr13xx.cpp
Removed:
################################################################################
diff --git a/clang/test/CXX/drs/dr13xx.cpp b/clang/test/CXX/drs/dr13xx.cpp
index 57d0f3cc97cc1..9efbd52ec58f1 100644
--- a/clang/test/CXX/drs/dr13xx.cpp
+++ b/clang/test/CXX/drs/dr13xx.cpp
@@ -450,6 +450,13 @@ namespace dr1391 { // dr1391: partial
}
}
+namespace dr1394 { // dr1394: 15
+#if __cplusplus >= 201103L
+struct Incomplete;
+Incomplete f(Incomplete) = delete; // well-formed
+#endif
+}
+
namespace dr1399 { // dr1399: dup 1388
template<typename ...T> void f(T..., int, T...) {} // expected-note {{candidate}} expected-error 0-1{{C++11}}
void g() {
More information about the cfe-commits
mailing list