Skip to content

Commit 0eb4bf2

Browse files
authored
[clang] CWG150: add tests and change to unreleased (#93758)
1 parent 74faa40 commit 0eb4bf2

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

clang/test/CXX/drs/cwg1xx.cpp

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,46 @@ namespace cwg148 { // cwg148: yes
753753

754754
// cwg149: na
755755

756+
namespace cwg150 { // cwg150: 19
757+
namespace p1 {
758+
template <class T, class U = int>
759+
class ARG { };
760+
761+
template <class X, template <class Y> class PARM>
762+
void f(PARM<X>) { }
763+
764+
void g() {
765+
ARG<int> x;
766+
f(x);
767+
}
768+
} // namespace p1
769+
770+
namespace p2 {
771+
template <template <class T, class U = int> class PARM>
772+
class C {
773+
PARM<int> pi;
774+
};
775+
} // namespace p2
776+
777+
namespace n1 {
778+
struct Dense { static const unsigned int dim = 1; };
779+
780+
template <template <typename> class View,
781+
typename Block>
782+
void operator+(float, View<Block> const&);
783+
784+
template <typename Block,
785+
unsigned int Dim = Block::dim>
786+
class Lvalue_proxy { operator float() const; };
787+
788+
void test_1d (void) {
789+
Lvalue_proxy<Dense> p;
790+
float b;
791+
b + p;
792+
}
793+
} // namespace n1
794+
}
795+
756796
namespace cwg151 { // cwg151: 3.1
757797
struct X {};
758798
typedef int X::*p;

clang/www/cxx_dr_status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
938938
<td><a href="https://cplusplus.github.io/CWG/issues/150.html">150</a></td>
939939
<td>C++17</td>
940940
<td>Template template parameters and default arguments</td>
941-
<td class="unknown" align="center">Unknown</td>
941+
<td class="unreleased" align="center">Clang 19</td>
942942
</tr>
943943
<tr id="151">
944944
<td><a href="https://cplusplus.github.io/CWG/issues/151.html">151</a></td>

0 commit comments

Comments
 (0)