[llvm-branch-commits] [clang] [BoundsSafety] Activate late parsing in type-attribute position (PR #233583)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 19 21:58:18 PDT 2026


github-actions[bot] wrote:

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

* 62096 tests passed
* 2144 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.Sema/attr-counted-by-bounds-safety-vlas.c</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 -fsyntax-only -fexperimental-bounds-safety -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-bounds-safety-vlas.c
# 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 -fsyntax-only -fexperimental-bounds-safety -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-bounds-safety-vlas.c
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-bounds-safety-vlas.c Line 23 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-bounds-safety-vlas.c:22): 'counted_by' cannot be applied to an array with element of unknown size because 'struct has_unannotated_VLA' is a struct type with a flexible array member
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-bounds-safety-vlas.c Line 30 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-bounds-safety-vlas.c:29): 'counted_by' cannot be applied to an array with element of unknown size because 'struct has_annotated_VLA' is a struct type with a flexible array member
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-bounds-safety-vlas.c Line 37 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-bounds-safety-vlas.c:36): 'counted_by' cannot be applied to an array with element of unknown size because 'const struct has_annotated_VLA' is a struct type with a flexible array member
# | error: 'expected-warning' diagnostics seen but not expected: 
# |   Line 23: 'counted_by' should not be applied to an array with element of unknown size because 'struct has_unannotated_VLA' is a struct type with a flexible array member. This will be an error in a future compiler version
# |   Line 30: 'counted_by' should not be applied to an array with element of unknown size because 'struct has_annotated_VLA' is a struct type with a flexible array member. This will be an error in a future compiler version
# |   Line 37: 'counted_by' should not be applied to an array with element of unknown size because 'const struct has_annotated_VLA' is a struct type with a flexible array member. This will be an error in a future compiler version
# | 6 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/attr-counted-by-void-ptr-gnu.c</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 -fsyntax-only -verify=expected-nowarn /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-void-ptr-gnu.c
# 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 -fsyntax-only -verify=expected-nowarn /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-void-ptr-gnu.c
# 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 -Wpointer-arith -fsyntax-only -verify=expected-warn /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-void-ptr-gnu.c
# 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 -Wpointer-arith -fsyntax-only -verify=expected-warn /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-void-ptr-gnu.c
# note: command had no output on stdout or stderr
# RUN: at line 3
/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 -fexperimental-bounds-safety -fsyntax-only -verify=expected-bounds /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-void-ptr-gnu.c
# 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 -fexperimental-bounds-safety -fsyntax-only -verify=expected-bounds /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/attr-counted-by-void-ptr-gnu.c
# .---command stderr------------
# | error: 'expected-bounds-error' diagnostics seen but not expected: 
# |   Line 21: 'counted_by' cannot be applied to a pointer with pointee of unknown size because 'void' is an incomplete type
# |   Line 28: 'counted_by' cannot be applied to a pointer with pointee of unknown size because 'const void' is an incomplete type
# |   Line 35: 'counted_by' cannot be applied to a pointer with pointee of unknown size because 'volatile void' is an incomplete type
# |   Line 42: 'counted_by' cannot be applied to a pointer with pointee of unknown size because 'const volatile void' is an incomplete type
# |   Line 59: 'counted_by_or_null' cannot be applied to a pointer with pointee of unknown size because 'void' is an incomplete type
# |   Line 66: 'counted_by_or_null' cannot be applied to a pointer with pointee of unknown size because 'const void' is an incomplete type
# | 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/233583


More information about the llvm-branch-commits mailing list