Skip to content

Commit

Permalink
[clang][NFC] Fill in historical data on when C++ DRs 700-1999 were fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Endilll committed Dec 7, 2023
1 parent 09a05f5 commit c79f94d
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr11xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: %clang_cc1 -std=c++17 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++2a %s -verify -fexceptions -fcxx-exceptions -pedantic-errors

namespace dr1111 { // dr1111: yes
namespace dr1111 { // dr1111: 3.2
namespace example1 {
template <typename> struct set;

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr12xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void g() {
#endif

#if __cplusplus >= 201103L
namespace dr1227 { // dr1227: yes
namespace dr1227 { // dr1227: 3.0
template <class T> struct A { using X = typename T::X; }; // expected-error {{type 'int' cannot be used prior to '::' because it has no members}}
template <class T> typename T::X f(typename A<T>::X);
template <class T> void f(...) { }
Expand Down
6 changes: 3 additions & 3 deletions clang/test/CXX/drs/dr13xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace std {
}

#if __cplusplus >= 201103L
namespace dr1305 { // dr1305: yes
namespace dr1305 { // dr1305: 3.0
struct Incomplete; // expected-note {{forward declaration of 'dr1305::Incomplete'}}
struct Complete {};

Expand Down Expand Up @@ -297,7 +297,7 @@ namespace dr1346 { // dr1346: 3.5
#endif
}

namespace dr1347 { // dr1347: yes
namespace dr1347 { // dr1347: 3.1
auto x = 5, *y = &x; // expected-error 0-1{{extension}}
auto z = y, *q = y; // expected-error {{'auto' deduced as 'int *' in declaration of 'z' and deduced as 'int' in declaration of 'q'}} expected-error 0-1{{extension}}
#if __cplusplus >= 201103L
Expand All @@ -306,7 +306,7 @@ namespace dr1347 { // dr1347: yes
#endif
}

namespace dr1358 { // dr1358: yes
namespace dr1358 { // dr1358: 3.1
#if __cplusplus >= 201103L
struct Lit { constexpr operator int() const { return 0; } };
struct NonLit { NonLit(); operator int(); }; // expected-note 2{{no constexpr constructors}}
Expand Down
4 changes: 2 additions & 2 deletions clang/test/CXX/drs/dr14xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ namespace dr1467 { // dr1467: 3.7 c++11
#endif
} // dr1467

namespace dr1479 { // dr1479: yes
namespace dr1479 { // dr1479: 3.1
int operator"" _a(const char*, std::size_t = 0); // expected-error {{literal operator cannot have a default argument}}
}

namespace dr1482 { // dr1482: yes
namespace dr1482 { // dr1482: 3.0
// NB: sup 2516, test reused there
#if __cplusplus >= 201103L
template <typename T> struct S {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr15xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ namespace std_example {
#endif // __cplusplus >= 201103L
}

namespace dr1550 { // dr1550: yes
namespace dr1550 { // dr1550: 3.4
int f(bool b, int n) {
return (b ? (throw 0) : n) + (b ? n : (throw 0));
}
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr16xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace dr1631 { // dr1631: 3.7
#endif
}

namespace dr1638 { // dr1638: yes
namespace dr1638 { // dr1638: 3.1
#if __cplusplus >= 201103L
template<typename T> struct A {
enum class E; // expected-note {{previous}}
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr18xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace dr1815 { // dr1815: no
#endif
}

namespace dr1821 { // dr1821: yes
namespace dr1821 { // dr1821: 2.9
struct A {
template <typename> struct B {
void f();
Expand Down
8 changes: 4 additions & 4 deletions clang/test/CXX/drs/dr19xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace dr1903 {
}
}

namespace dr1909 { // dr1909: yes
namespace dr1909 { // dr1909: 3.7
struct A {
template<typename T> struct A {}; // expected-error {{member 'A' has the same name as its class}}
};
Expand All @@ -79,7 +79,7 @@ namespace dr1909 { // dr1909: yes
};
}

namespace dr1940 { // dr1940: yes
namespace dr1940 { // dr1940: 3.5
#if __cplusplus >= 201103L
static union {
static_assert(true, ""); // ok
Expand Down Expand Up @@ -119,7 +119,7 @@ derived d2(42, 9);
#endif
}

namespace dr1947 { // dr1947: yes
namespace dr1947 { // dr1947: 3.5
#if __cplusplus >= 201402L
unsigned o = 0'01; // ok
unsigned b = 0b'01; // expected-error {{invalid digit 'b' in octal constant}}
Expand All @@ -128,7 +128,7 @@ unsigned x = 0x'01; // expected-error {{invalid suffix 'x'01' on integer constan
}

#if __cplusplus >= 201103L
// dr1948: yes
// dr1948: 3.5
// FIXME: This diagnostic could be improved.
void *operator new(__SIZE_TYPE__) noexcept { return nullptr; } // expected-error{{exception specification in declaration does not match previous declaration}}
#endif
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr25xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// expected-no-diagnostics
#endif

namespace dr2516 { // dr2516: yes
namespace dr2516 { // dr2516: 3.0
// NB: reusing 1482 test
#if __cplusplus >= 201103L
template <typename T> struct S {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr412.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC=
// RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC=

// dr412: yes
// dr412: 3.4
// lwg404: yes
// lwg2340: yes

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr8xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// expected-no-diagnostics

namespace dr873 { // dr873: yes
namespace dr873 { // dr873: 3.0
#if __cplusplus >= 201103L
template <typename T> void f(T &&);
template <> void f(int &) {} // #1
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CXX/drs/dr9xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace dr948 { // dr948: 3.7
#endif
}

namespace dr952 { // dr952: yes
namespace dr952 { // dr952: 2.8
namespace example1 {
struct A {
typedef int I; // #dr952-typedef-decl
Expand Down
36 changes: 18 additions & 18 deletions clang/www/cxx_dr_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/412.html">412</a></td>
<td>NAD</td>
<td>Can a replacement allocation function be inline?</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.4</td>
</tr>
<tr id="413">
<td><a href="https://cplusplus.github.io/CWG/issues/413.html">413</a></td>
Expand Down Expand Up @@ -5117,7 +5117,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/873.html">873</a></td>
<td>C++11</td>
<td>Deducing rvalue references in declarative contexts</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.0</td>
</tr>
<tr id="874">
<td><a href="https://cplusplus.github.io/CWG/issues/874.html">874</a></td>
Expand Down Expand Up @@ -5519,7 +5519,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/952.html">952</a></td>
<td>CD6</td>
<td>Insufficient description of &#8220;naming class&#8221;</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 2.8</td>
</tr>
<tr id="953">
<td><a href="https://cplusplus.github.io/CWG/issues/953.html">953</a></td>
Expand Down Expand Up @@ -6473,7 +6473,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1111.html">1111</a></td>
<td>C++11</td>
<td>Remove dual-scope lookup of member template names</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.2</td>
</tr>
<tr id="1112">
<td><a href="https://cplusplus.github.io/CWG/issues/1112.html">1112</a></td>
Expand Down Expand Up @@ -7169,7 +7169,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1227.html">1227</a></td>
<td>CD3</td>
<td>Mixing immediate and non-immediate contexts in deduction failure</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.0</td>
</tr>
<tr id="1228">
<td><a href="https://cplusplus.github.io/CWG/issues/1228.html">1228</a></td>
Expand Down Expand Up @@ -7637,7 +7637,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1305.html">1305</a></td>
<td>CD3</td>
<td><TT>alignof</TT> applied to array of unknown size</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.0</td>
</tr>
<tr id="1306">
<td><a href="https://cplusplus.github.io/CWG/issues/1306.html">1306</a></td>
Expand Down Expand Up @@ -7889,7 +7889,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1347.html">1347</a></td>
<td>CD3</td>
<td>Consistency of <TT>auto</TT> in multiple-declarator declarations</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.1</td>
</tr>
<tr class="open" id="1348">
<td><a href="https://cplusplus.github.io/CWG/issues/1348.html">1348</a></td>
Expand Down Expand Up @@ -7955,7 +7955,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1358.html">1358</a></td>
<td>CD3</td>
<td>Unintentionally ill-formed <TT>constexpr</TT> function template instances</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.1</td>
</tr>
<tr id="1359">
<td><a href="https://cplusplus.github.io/CWG/issues/1359.html">1359</a></td>
Expand Down Expand Up @@ -8681,7 +8681,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1479.html">1479</a></td>
<td>CD3</td>
<td>Literal operators and default arguments</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.1</td>
</tr>
<tr id="1480">
<td><a href="https://cplusplus.github.io/CWG/issues/1480.html">1480</a></td>
Expand All @@ -8699,7 +8699,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1482.html">1482</a></td>
<td>CD3</td>
<td>Point of declaration of enumeration</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.0</td>
</tr>
<tr id="1483">
<td><a href="https://cplusplus.github.io/CWG/issues/1483.html">1483</a></td>
Expand Down Expand Up @@ -9107,7 +9107,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1550.html">1550</a></td>
<td>CD3</td>
<td>Parenthesized <I>throw-expression</I> operand of <I>conditional-expression</I></td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.4</td>
</tr>
<tr id="1551">
<td><a href="https://cplusplus.github.io/CWG/issues/1551.html">1551</a></td>
Expand Down Expand Up @@ -9635,7 +9635,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1638.html">1638</a></td>
<td>CD4</td>
<td>Declaring an explicit specialization of a scoped enumeration</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.1</td>
</tr>
<tr id="1639">
<td><a href="https://cplusplus.github.io/CWG/issues/1639.html">1639</a></td>
Expand Down Expand Up @@ -10733,7 +10733,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1821.html">1821</a></td>
<td>CD6</td>
<td>Qualified redeclarations in a class <I>member-specification</I></td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 2.9</td>
</tr>
<tr id="1822">
<td><a href="https://cplusplus.github.io/CWG/issues/1822.html">1822</a></td>
Expand Down Expand Up @@ -11261,7 +11261,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1909.html">1909</a></td>
<td>CD4</td>
<td>Member class template with the same name as the class</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.7</td>
</tr>
<tr id="1910">
<td><a href="https://cplusplus.github.io/CWG/issues/1910.html">1910</a></td>
Expand Down Expand Up @@ -11447,7 +11447,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1940.html">1940</a></td>
<td>CD4</td>
<td><TT>static_assert</TT> in anonymous unions</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.5</td>
</tr>
<tr id="1941">
<td><a href="https://cplusplus.github.io/CWG/issues/1941.html">1941</a></td>
Expand Down Expand Up @@ -11489,13 +11489,13 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1947.html">1947</a></td>
<td>NAD</td>
<td>Digit separators following non-octal prefix</td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.5</td>
</tr>
<tr id="1948">
<td><a href="https://cplusplus.github.io/CWG/issues/1948.html">1948</a></td>
<td>NAD</td>
<td><I>exception-specification</I> of replacement global <TT>new</TT></td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.5</td>
</tr>
<tr id="1949">
<td><a href="https://cplusplus.github.io/CWG/issues/1949.html">1949</a></td>
Expand Down Expand Up @@ -14903,7 +14903,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/2516.html">2516</a></td>
<td>C++23</td>
<td>Locus of <I>enum-specifier</I> or <I>opaque-enum-declaration</I></td>
<td class="full" align="center">Yes</td>
<td class="full" align="center">Clang 3.0</td>
</tr>
<tr id="2517">
<td><a href="https://cplusplus.github.io/CWG/issues/2517.html">2517</a></td>
Expand Down

0 comments on commit c79f94d

Please sign in to comment.