Skip to content

Commit cf61e34

Browse files
authored
1 parent cd6434f commit cf61e34

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

clang/test/CXX/drs/dr16xx.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ void g() {
3535
}
3636
} // namespace dr1601
3737

38+
namespace dr1606 { // dr1606: 3.1
39+
#if __cplusplus >= 201103L
40+
std::size_t test() {
41+
int i = 1;
42+
int j = 1;
43+
auto f = [=]{ return i + j; };
44+
return sizeof(f);
45+
}
46+
#endif
47+
} // namespace dr1606
48+
3849
namespace dr1611 { // dr1611: dup 1658
3950
struct A { A(int); };
4051
struct B : virtual A { virtual void f() = 0; };

clang/www/cxx_dr_status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9444,7 +9444,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
94449444
<td><a href="https://cplusplus.github.io/CWG/issues/1606.html">1606</a></td>
94459445
<td>NAD</td>
94469446
<td><TT>sizeof</TT> closure class</td>
9447-
<td class="unknown" align="center">Unknown</td>
9447+
<td class="full" align="center">Clang 3.1</td>
94489448
</tr>
94499449
<tr id="1607">
94509450
<td><a href="https://cplusplus.github.io/CWG/issues/1607.html">1607</a></td>

0 commit comments

Comments
 (0)