Skip to content

Commit 3475116

Browse files
authored
[clang][NFC] Add a test for CWG2685 (#95206)
I believe it has been implemented since D139837 "Implements CTAD for aggregates P1816R0 and P2082R1", so this just claims we have already supported it. Plus an update on the dr status page.
1 parent 00bb18a commit 3475116

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

clang/test/CXX/drs/cwg26xx.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,15 @@ void m() {
225225
}
226226

227227
#if __cplusplus >= 202302L
228+
229+
namespace cwg2685 { // cwg2685: 17
230+
template <class T>
231+
struct A {
232+
T ar[4];
233+
};
234+
A a = { "foo" };
235+
}
236+
228237
namespace cwg2687 { // cwg2687: 18
229238
struct S{
230239
void f(int);

clang/www/cxx_dr_status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15918,7 +15918,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
1591815918
<td><a href="https://cplusplus.github.io/CWG/issues/2685.html">2685</a></td>
1591915919
<td>C++23</td>
1592015920
<td>Aggregate CTAD, string, and brace elision</td>
15921-
<td class="unknown" align="center">Unknown</td>
15921+
<td class="full" align="center">Clang 17</td>
1592215922
</tr>
1592315923
<tr class="open" id="2686">
1592415924
<td><a href="https://cplusplus.github.io/CWG/issues/2686.html">2686</a></td>

0 commit comments

Comments
 (0)