[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 9 22:48:12 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-debian-cpp20` running on `clang-debian-cpp20` while building `clang` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/108/builds/18599

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


```

</details>

https://github.com/llvm/llvm-project/pull/162714


More information about the cfe-commits mailing list