[PATCH] D142381: [clang] Add test for CWG1960
Vlad Serebrennikov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 26 03:41:06 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG839eae38a4e4: [clang] Add test for CWG1960 (authored by Endill).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142381/new/
https://reviews.llvm.org/D142381
Files:
clang/test/CXX/drs/dr19xx.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
@@ -11567,7 +11567,7 @@
<td><a href="https://wg21.link/cwg1960">1960</a></td>
<td>NAD</td>
<td>Visibility of entity named in class-scope <I>using-declaration</I></td>
- <td class="none" align="center">Unknown</td>
+ <td class="none" align="center">No</td>
</tr>
<tr id="1961">
<td><a href="https://wg21.link/cwg1961">1961</a></td>
Index: clang/test/CXX/drs/dr19xx.cpp
===================================================================
--- clang/test/CXX/drs/dr19xx.cpp
+++ clang/test/CXX/drs/dr19xx.cpp
@@ -167,6 +167,27 @@
#endif
}
+namespace dr1960 { // dr1960: no
+struct A {
+void f() {}
+protected:
+void g() {}
+};
+
+struct B: A {
+private:
+using A::f;
+using A::g;
+};
+
+struct C : B {
+// FIXME: both declarations are ill-formed, because A::f and A::g
+// are not accessible.
+using A::f;
+using A::g;
+};
+}
+
namespace dr1966 { // dr1966: 11
#if __cplusplus >= 201103L
struct A {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142381.492379.patch
Type: text/x-patch
Size: 1105 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230126/70a6e42b/attachment.bin>
More information about the cfe-commits
mailing list