[clang] [clang][bytecode] Diagnose pointer subtractions of elements of different arrays (PR #209496)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 15 21:52:08 PDT 2026
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/209496 at github.com>
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-b-1` while building `clang` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/44305
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/wasm-ld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/wasm-ld
-- Testing: 25381 tests, 60 workers --
Testing:
FAIL: Clang :: AST/ByteCode/virtual-bases.cpp (154 of 25381)
******************** TEST 'Clang :: AST/ByteCode/virtual-bases.cpp' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/lib/clang/24/include -nostdsysteminc -std=c++26 -fexperimental-new-constant-interpreter -verify=both,expected /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/lib/clang/24/include -nostdsysteminc -std=c++26 -fexperimental-new-constant-interpreter -verify=both,expected /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp
# .---command stderr------------
# | error: diagnostics with 'error' severity seen but not expected:
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 442: static assertion expression is not an integral constant expression
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 443: static assertion expression is not an integral constant expression
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 444: static assertion expression is not an integral constant expression
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 445: static assertion expression is not an integral constant expression
# | error: diagnostics with 'note' severity seen but not expected:
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 442: subtracted pointers are not elements of the same array
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 443: subtracted pointers are not elements of the same array
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 444: subtracted pointers are not elements of the same array
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 445: subtracted pointers are not elements of the same array
# | 8 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
--
********************
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
********************
Failed Tests (1):
Clang :: AST/ByteCode/virtual-bases.cpp
Testing Time: 143.49s
Total Discovered Tests: 53924
Skipped : 8 (0.01%)
Unsupported : 1914 (3.55%)
Passed : 51975 (96.39%)
Step 7 (check) failure: check (failure)
...
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/wasm-ld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/wasm-ld
-- Testing: 25381 tests, 60 workers --
Testing:
FAIL: Clang :: AST/ByteCode/virtual-bases.cpp (154 of 25381)
******************** TEST 'Clang :: AST/ByteCode/virtual-bases.cpp' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/lib/clang/24/include -nostdsysteminc -std=c++26 -fexperimental-new-constant-interpreter -verify=both,expected /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-fyfoqcy5/lib/clang/24/include -nostdsysteminc -std=c++26 -fexperimental-new-constant-interpreter -verify=both,expected /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp
# .---command stderr------------
# | error: diagnostics with 'error' severity seen but not expected:
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 442: static assertion expression is not an integral constant expression
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 443: static assertion expression is not an integral constant expression
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 444: static assertion expression is not an integral constant expression
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 445: static assertion expression is not an integral constant expression
# | error: diagnostics with 'note' severity seen but not expected:
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 442: subtracted pointers are not elements of the same array
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 443: subtracted pointers are not elements of the same array
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 444: subtracted pointers are not elements of the same array
# | File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/ByteCode/virtual-bases.cpp Line 445: subtracted pointers are not elements of the same array
# | 8 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
--
********************
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
********************
Failed Tests (1):
Clang :: AST/ByteCode/virtual-bases.cpp
Testing Time: 143.49s
Total Discovered Tests: 53924
Skipped : 8 (0.01%)
Unsupported : 1914 (3.55%)
Passed : 51975 (96.39%)
```
</details>
https://github.com/llvm/llvm-project/pull/209496
More information about the cfe-commits
mailing list