Skip to content

Commit 1904c09

Browse files
committed
Merge CWG156 test into CWG111 test, and downgrade CWG1111 to partial
1 parent dcd29ca commit 1904c09

File tree

3 files changed

+46
-46
lines changed

3 files changed

+46
-46
lines changed

clang/test/CXX/drs/cwg11xx.cpp

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ decltype(return_T<B<int>>())* b;
1919
#endif
2020
} // namespace cwg1110
2121

22-
namespace cwg1111 { // cwg1111: 3.2
22+
namespace cwg1111 { // cwg1111: partial
2323
namespace example1 {
2424
template <typename> struct set; // #cwg1111-struct-set
2525

@@ -57,6 +57,48 @@ void baz() {
5757
a.operator A();
5858
}
5959
} // namespace example2
60+
61+
namespace example3 {
62+
struct A {
63+
operator int();
64+
} a;
65+
void foo() {
66+
typedef int T;
67+
a.operator T(); // T is found using unqualified lookup
68+
// after qualified lookup in A fails.
69+
}
70+
} // namespace example3
71+
72+
namespace example4 {
73+
struct A {
74+
typedef int T; // #cwg1111-A-T
75+
operator T();
76+
};
77+
struct B : A {
78+
operator T();
79+
} b;
80+
void foo() {
81+
b.A::operator T(); // FIXME: qualified lookup should find T in A.
82+
// expected-error@-1 {{unknown type name 'T'}}
83+
// expected-note@#cwg1111-A-T {{'A::T' declared here}}
84+
}
85+
} // namespace example4
86+
87+
namespace example5 {
88+
template <class T1> struct A {
89+
operator T1();
90+
};
91+
template <class T2> struct B : A<T2> {
92+
operator T2();
93+
void foo() {
94+
// In both cases, during instantiation, qualified lookup for T2 wouldn't be able
95+
// to find anything, so T2 has to be found by unqualified lookup.
96+
// After that, 'operator T2()' is found in A<T2> by qualfied lookup.
97+
T2 a = A<T2>::operator T2();
98+
T2 b = ((A<T2> *)this)->operator T2();
99+
}
100+
};
101+
} // namespace example5
60102
} // namespace cwg1111
61103

62104
namespace cwg1113 { // cwg1113: partial

clang/test/CXX/drs/cwg1xx.cpp

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -922,49 +922,7 @@ namespace cwg155 { // cwg155: dup 632
922922
// expected-warning@-1 {{braces around scalar initializer}}
923923
}
924924

925-
namespace cwg156 { // cwg156: partial
926-
namespace ex1 {
927-
struct A {
928-
operator int();
929-
} a;
930-
void foo() {
931-
typedef int T;
932-
a.operator T(); // T is found using unqualified lookup
933-
// after qualified lookup in A fails.
934-
}
935-
} // namespace ex1
936-
937-
namespace ex2 {
938-
struct A {
939-
typedef int T;
940-
operator T();
941-
};
942-
struct B : A {
943-
operator T();
944-
} b;
945-
void foo() {
946-
b.A::operator T(); // FIXME: qualified lookup should find T in A.
947-
// expected-error@-1 {{unknown type name 'T'}}
948-
}
949-
} // namespace ex2
950-
951-
namespace ex3 {
952-
template <class T1> struct A {
953-
operator T1();
954-
};
955-
template <class T2> struct B : A<T2> {
956-
operator T2();
957-
void foo() {
958-
// In both cases, during instantiation, qualified lookup for T2 wouldn't be able
959-
// to find anything, so T2 has to be found by unqualified lookup.
960-
// After that, 'operator T2()' is found in A<T2> by qualfied lookup.
961-
T2 a = A<T2>::operator T2();
962-
T2 b = ((A<T2> *)this)->operator T2();
963-
}
964-
};
965-
} // namespace ex3
966-
} // namespace cwg156
967-
925+
// cwg156: sup 1111
968926
// cwg158 is in cwg158.cpp
969927

970928
namespace cwg159 { // cwg159: 3.5

clang/www/cxx_dr_status.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
981981
<td><a href="https://cplusplus.github.io/CWG/issues/156.html">156</a></td>
982982
<td>NAD</td>
983983
<td>Name lookup for conversion functions</td>
984-
<td class="partial" align="center">Partial</td>
984+
<td class="partial-superseded" align="center">Superseded by <a href="#1111">1111</a></td>
985985
</tr>
986986
<tr class="open" id="157">
987987
<td><a href="https://cplusplus.github.io/CWG/issues/157.html">157</a></td>
@@ -6485,7 +6485,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
64856485
<td><a href="https://cplusplus.github.io/CWG/issues/1111.html">1111</a></td>
64866486
<td>C++11</td>
64876487
<td>Remove dual-scope lookup of member template names</td>
6488-
<td class="full" align="center">Clang 3.2</td>
6488+
<td class="partial" align="center">Partial</td>
64896489
</tr>
64906490
<tr id="1112">
64916491
<td><a href="https://cplusplus.github.io/CWG/issues/1112.html">1112</a></td>

0 commit comments

Comments
 (0)