[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 10: Expansion Limit) (PR #169689)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 18 18:47:20 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 53296 tests passed
* 1029 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.SemaTemplate/GH176155.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -std=c++20 -fsyntax-only -verify C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -std=c++20 -fsyntax-only -verify 'C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp'
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 11 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:12): variable 'i' cannot be implicitly captured in a lambda with no capture-default specified
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 11 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:15): variable 'i' cannot be implicitly captured in a lambda with no capture-default specified
# | error: 'expected-note' diagnostics expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:6): while substituting into a lambda expression here
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:7): capture 'i' by value
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:7): capture 'i' by value
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:8): capture 'i' by reference
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:8): capture 'i' by reference
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:9): default capture by value
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:9): default capture by value
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:10): default capture by reference
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:10): default capture by reference
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 11 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:13): 'i' declared here
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:14): lambda expression begins here
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 11 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:16): 'i' declared here
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 5 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp:17): lambda expression begins here
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 23: in instantiation of default argument for 'f<int>' required here
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaTemplate\GH176155.cpp Line 26: while substituting deduced template arguments into function template 'f'
# | 17 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/169689


More information about the llvm-branch-commits mailing list