[clang] 71bc3dd - [clang] Add test for CWG2213
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Tue May 23 02:44:31 PDT 2023
Author: Vlad Serebrennikov
Date: 2023-05-23T12:44:24+03:00
New Revision: 71bc3dd42e2939a25e4394dbebf6239e3e6403a9
URL: https://github.com/llvm/llvm-project/commit/71bc3dd42e2939a25e4394dbebf6239e3e6403a9
DIFF: https://github.com/llvm/llvm-project/commit/71bc3dd42e2939a25e4394dbebf6239e3e6403a9.diff
LOG: [clang] Add test for CWG2213
[[https://wg21.link/p1787 | P1787]]: CWG2213 is resolved by allowing an elaborated-type-specifier to contain a simple-template-id without friend.
Wording: see changes to [dcl.type.elab]]/1.
The gist of the issue is that forward declaration of partial class template specialization was disallowed.
Reviewed By: #clang-language-wg, shafik
Differential Revision: https://reviews.llvm.org/D151032
Added:
Modified:
clang/test/CXX/drs/dr22xx.cpp
clang/www/cxx_dr_status.html
Removed:
################################################################################
diff --git a/clang/test/CXX/drs/dr22xx.cpp b/clang/test/CXX/drs/dr22xx.cpp
index c14c1f1e7c7a9..414925f0d74cc 100644
--- a/clang/test/CXX/drs/dr22xx.cpp
+++ b/clang/test/CXX/drs/dr22xx.cpp
@@ -14,6 +14,14 @@ void f() {
}
#endif
+namespace dr2213 { // dr2213: yes
+template <typename T, typename U>
+struct A;
+
+template <typename U>
+struct A<int, U>;
+} // namespace dr2213
+
namespace dr2229 { // dr2229: 7
struct AnonBitfieldQualifiers {
const unsigned : 1; // expected-error {{anonymous bit-field cannot have qualifiers}}
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index 6a04e17ecc137..4f687e9bcbdcc 100755
--- a/clang/www/cxx_dr_status.html
+++ b/clang/www/cxx_dr_status.html
@@ -13085,7 +13085,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/2213.html">2213</a></td>
<td>CD6</td>
<td>Forward declaration of partial specializations</td>
- <td class="none" align="center">Unknown</td>
+ <td class="full" align="center">Yes</td>
</tr>
<tr id="2214">
<td><a href="https://cplusplus.github.io/CWG/issues/2214.html">2214</a></td>
More information about the cfe-commits
mailing list