Skip to content

Commit 2d2222b

Browse files
committed
add UT and release note
1 parent d3c7fb2 commit 2d2222b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ Bug Fixes in This Version
432432
- Fixed a failed assertion with empty filename arguments in ``__has_embed``. (#GH159898)
433433
- Fixed a failed assertion with empty filename in ``#embed`` directive. (#GH162951)
434434
- Fixed a crash triggered by unterminated ``__has_embed``. (#GH162953)
435+
- Fixed a wrong diagnostic about a local variable inside a lambda in unevaluated
436+
contexts need capture. (#GH163837)
435437

436438
Bug Fixes to Compiler Builtins
437439
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

clang/test/SemaCXX/lambda-unevaluated.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,22 @@ static_assert(__is_same_as(int, helper<int>));
282282

283283

284284
} // namespace GH138018
285+
286+
namespace GH163837 {
287+
288+
template<int N>
289+
void f();
290+
291+
template<class>
292+
struct X {
293+
using type = decltype([](auto) {
294+
f<[]{
295+
int result = 0;
296+
return result;
297+
}()>();
298+
}(0));
299+
};
300+
301+
X<void> l;
302+
303+
} // namespace GH163837

0 commit comments

Comments
 (0)