[PATCH] D129583: [DOC] Add DR1734 and DR1496 Clang's cxx_dr_status as not implemented
Roy Jacobson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 13 14:48:50 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG202b327f5d29: [DOC] Add DR1734 and DR1496 Clang's cxx_dr_status as not implemented (authored by royjacobson).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129583/new/
https://reviews.llvm.org/D129583
Files:
clang/test/CXX/drs/dr14xx.cpp
clang/test/CXX/drs/dr17xx.cpp
clang/www/cxx_dr_status.html
Index: clang/www/cxx_dr_status.html
===================================================================
--- clang/www/cxx_dr_status.html
+++ clang/www/cxx_dr_status.html
@@ -8790,7 +8790,7 @@
<td><a href="https://wg21.link/cwg1496">1496</a></td>
<td>CD4</td>
<td>Triviality with deleted and missing default constructors</td>
- <td class="none" align="center">Unknown</td>
+ <td class="none" align="center">No</td>
</tr>
<tr id="1497">
<td><a href="https://wg21.link/cwg1497">1497</a></td>
@@ -10218,7 +10218,7 @@
<td><a href="https://wg21.link/cwg1734">1734</a></td>
<td>CD4</td>
<td>Nontrivial deleted copy functions</td>
- <td class="none" align="center">Unknown</td>
+ <td class="none" align="center">No</td>
</tr>
<tr class="open" id="1735">
<td><a href="https://wg21.link/cwg1735">1735</a></td>
Index: clang/test/CXX/drs/dr17xx.cpp
===================================================================
--- clang/test/CXX/drs/dr17xx.cpp
+++ clang/test/CXX/drs/dr17xx.cpp
@@ -27,6 +27,18 @@
#endif
}
+namespace dr1734 { // dr1734: no
+#if __cplusplus >= 201103L
+struct A {
+ A(const A&) = delete;
+};
+// FIXME: 'A' should not be trivially copyable because the class lacks at least
+// one non-deleted copy constructor, move constructor, copy assignment
+// operator, or move assignment operator.
+static_assert(__is_trivially_copyable(A), "");
+#endif
+}
+
namespace dr1736 { // dr1736: 3.9
#if __cplusplus >= 201103L
struct S {
Index: clang/test/CXX/drs/dr14xx.cpp
===================================================================
--- clang/test/CXX/drs/dr14xx.cpp
+++ clang/test/CXX/drs/dr14xx.cpp
@@ -501,4 +501,16 @@
template<typename ...Ts> int c<0, Ts...>; // expected-error {{not more specialized}}
#endif
}
+
+namespace dr1496 { // dr1496: no
+#if __cplusplus >= 201103L
+struct A {
+ A() = delete;
+};
+// FIXME: 'A' should not be trivial because the class lacks at least one
+// default constructor which is not deleted.
+static_assert(__is_trivial(A), "");
+#endif
+}
+
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129583.444423.patch
Type: text/x-patch
Size: 2076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220713/f22ef1ca/attachment.bin>
More information about the cfe-commits
mailing list