[clang] [Clang] Check consteval calls in lambda init-captures (PR #229953)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 8 04:49:58 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 61906 tests passed
* 2031 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.SemaCXX/source_location.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++1z -fcxx-exceptions -fexceptions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/source_location.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++1z -fcxx-exceptions -fexceptions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/source_location.cpp
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++2a -fcxx-exceptions -DUSE_CONSTEVAL -fexceptions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/source_location.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++2a -fcxx-exceptions -DUSE_CONSTEVAL -fexceptions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/source_location.cpp
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected:
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/source_location.cpp Line 8041: static assertion failed due to requirement 'test_init_capture() == 8041 - 4'
# | error: 'expected-note' diagnostics seen but not expected:
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/source_location.cpp Line 8041: expression evaluates to '8041 == 8037'
# | 2 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/229953
More information about the cfe-commits
mailing list