[clang] [clang][bytecode] Fix non-defaulted union copy/move ctors (PR #199394)
via cfe-commits
cfe-commits at lists.llvm.org
Sat May 23 22:16:23 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 54014 tests passed
* 1259 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.AST/ByteCode/unions.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 -verify=expected,both C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp -fexperimental-new-constant-interpreter
# 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 -verify=expected,both 'C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp' -fexperimental-new-constant-interpreter
# note: command had no output on stdout or stderr
# RUN: at line 2
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 -verify=expected,both C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp -fexperimental-new-constant-interpreter
# 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 -verify=expected,both 'C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp' -fexperimental-new-constant-interpreter
# .---command stderr------------
# | error: diagnostics with 'error' severity seen but not expected:
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp Line 393: expected member name or ';' after declaration specifiers
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp Line 393: invalid use of non-static data member 'a'
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp Line 393: non-static data member cannot be constexpr; did you intend to make it const?
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp Line 398: default initialization of an object of const type 'const U' without a user-provided default constructor
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp Line 400: static assertion failed due to requirement 'u22.a == 20'
# | error: diagnostics with 'note' severity seen but not expected:
# | File C:\_work\llvm-project\llvm-project\clang\test\AST\ByteCode\unions.cpp Line 400: expression evaluates to '0 == 20'
# | 6 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/199394
More information about the cfe-commits
mailing list