[clang] [clang][bytecode] Fix assertion in Pointer::isInitialized() for GlobalInlineDescriptor (PR #175512)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 12 02:48:10 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 85369 tests passed
* 1204 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.AST/ByteCode/arrays.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/22/include -nostdsysteminc -fexperimental-new-constant-interpreter -verify=expected,both            /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.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/22/include -nostdsysteminc -fexperimental-new-constant-interpreter -verify=expected,both /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp
# .---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/arrays.cpp Line 144: constexpr variable 'dependent' must be initialized by a constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 147: static assertion expression is not an integral constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 148: static assertion expression is not an integral constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 409: constexpr variable 'b' must be initialized by a constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 412: static assertion expression is not an integral constant expression
# | error: diagnostics with 'note' severity seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 145: read of object outside its lifetime is not allowed in a constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 147: initializer of 'dependent' is not a constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 144: declared here
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 148: initializer of 'dependent' is not a constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 144: declared here
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 409: initializer of 'a' is not a constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 404: declared here
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 412: initializer of 'b' is not a constant expression
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/AST/ByteCode/arrays.cpp Line 409: declared here
# | 14 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/175512


More information about the cfe-commits mailing list