Skip to content

Commit 70688e8

Browse files
committed
Revert "[clang] Add tests for CWG issues 977, 1482, 2516"
This reverts commit 85452b5.
1 parent 2ecb1b6 commit 70688e8

File tree

4 files changed

+3
-36
lines changed

4 files changed

+3
-36
lines changed

clang/test/CXX/drs/dr14xx.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -488,17 +488,6 @@ namespace dr1479 { // dr1479: yes
488488
int operator"" _a(const char*, std::size_t = 0); // expected-error {{literal operator cannot have a default argument}}
489489
}
490490

491-
namespace dr1482 { // dr1482: yes
492-
// NB: sup 2516, test reused there
493-
#if __cplusplus >= 201103L
494-
template <typename T> struct S {
495-
typedef char I;
496-
};
497-
enum E2 : S<E2>::I { e };
498-
// expected-error@-1 {{use of undeclared identifier 'E2'}}
499-
#endif
500-
} // namespace dr1482
501-
502491
namespace dr1490 { // dr1490: 3.7 c++11
503492
// List-initialization from a string literal
504493

clang/test/CXX/drs/dr25xx.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-unknown %s -verify
22

3-
namespace dr2516 { // dr2516: yes
4-
// NB: reusing 1482 test
5-
#if __cplusplus >= 201103L
6-
template <typename T> struct S {
7-
typedef char I;
8-
};
9-
enum E2 : S<E2>::I { e };
10-
// expected-error@-1 {{use of undeclared identifier 'E2'}}
11-
#endif
12-
} // namespace dr2516
13-
143
namespace dr2518 { // dr2518: 17
154

165
template <class T>

clang/test/CXX/drs/dr9xx.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,6 @@ namespace dr974 { // dr974: yes
9090
#endif
9191
}
9292

93-
namespace dr977 { // dr977: yes
94-
enum E { e = E() };
95-
// expected-error@-1 {{invalid use of incomplete type 'E'}}
96-
// expected-note@-2 {{definition of 'dr977::E' is not complete until the closing '}'}}
97-
#if __cplusplus >= 201103L
98-
enum E2 : int { e2 = E2() };
99-
enum struct E3 { e = static_cast<int>(E3()) };
100-
enum struct E4 : int { e = static_cast<int>(E4()) };
101-
#endif
102-
} // namespace dr977
103-
10493
namespace dr990 { // dr990: 3.5
10594
#if __cplusplus >= 201103L
10695
struct A { // expected-note 2{{candidate}}

clang/www/cxx_dr_status.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5669,7 +5669,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
56695669
<td><a href="https://cplusplus.github.io/CWG/issues/977.html">977</a></td>
56705670
<td>CD3</td>
56715671
<td>When is an enumeration type complete?</td>
5672-
<td class="full" align="center">Yes</td>
5672+
<td class="none" align="center">Unknown</td>
56735673
</tr>
56745674
<tr id="978">
56755675
<td><a href="https://cplusplus.github.io/CWG/issues/978.html">978</a></td>
@@ -8699,7 +8699,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
86998699
<td><a href="https://cplusplus.github.io/CWG/issues/1482.html">1482</a></td>
87008700
<td>CD3</td>
87018701
<td>Point of declaration of enumeration</td>
8702-
<td class="full" align="center">Yes</td>
8702+
<td class="none" align="center">Unknown</td>
87038703
</tr>
87048704
<tr id="1483">
87058705
<td><a href="https://cplusplus.github.io/CWG/issues/1483.html">1483</a></td>
@@ -14903,7 +14903,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
1490314903
<td><a href="https://cplusplus.github.io/CWG/issues/2516.html">2516</a></td>
1490414904
<td>DR</td>
1490514905
<td>Locus of <I>enum-specifier</I> or <I>opaque-enum-declaration</I></td>
14906-
<td class="full" align="center">Yes</td>
14906+
<td class="none" align="center">Unknown</td>
1490714907
</tr>
1490814908
<tr id="2517">
1490914909
<td><a href="https://cplusplus.github.io/CWG/issues/2517.html">2517</a></td>

0 commit comments

Comments
 (0)