[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: Linux-->
# :penguin: Linux x64 Test Results
* 88081 tests passed
* 1606 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
/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/23/include -nostdsysteminc -verify=expected,both /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/unions.cpp -fexperimental-new-constant-interpreter
# 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/23/include -nostdsysteminc -verify=expected,both /home/gha/actions-runner/_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
/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/23/include -nostdsysteminc -std=c++20 -verify=expected,both /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/unions.cpp -fexperimental-new-constant-interpreter
# 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/23/include -nostdsysteminc -std=c++20 -verify=expected,both /home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/unions.cpp Line 393: expected member name or ';' after declaration specifiers
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/unions.cpp Line 393: invalid use of non-static data member 'a'
# | File /home/gha/actions-runner/_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 /home/gha/actions-runner/_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 /home/gha/actions-runner/_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 /home/gha/actions-runner/_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