Skip to content

Commit b53e085

Browse files
authored
Revert "[clang][NFC] Add a test for CWG2685" (#95389)
I was wrong: The purpose of CWG2685 is to avoid brace elision on string literals and we should be rejecting the case. Reverts #95206
1 parent 5e8cf0b commit b53e085

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

clang/test/CXX/drs/cwg26xx.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,6 @@ 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-
237228
namespace cwg2687 { // cwg2687: 18
238229
struct S{
239230
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="full" align="center">Clang 17</td>
15921+
<td class="unknown" align="center">Unknown</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)