[clang] [clang] Lifetimebound in assignment operator should work for non-gsl annotated types. (PR #113180)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 05:29:46 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `clang` at step 4 "annotate".

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

<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/ve-linux.py ...' (failure)
...
[294/300] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
[295/300] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
[296/300] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[297/300] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[298/300] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[299/300] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[299/300] Running the Clang regression tests
-- Testing: 21180 tests, 48 workers --
llvm-lit: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: Clang :: SemaCXX/attr-lifetimebound.cpp (17646 of 21180)
******************** TEST 'Clang :: SemaCXX/attr-lifetimebound.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
error: 'expected-warning' diagnostics expected but not seen: 
  File /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing the foo1 will be destroyed at the end
  File /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing the foo2 will be destroyed at the end
error: 'expected-warning' diagnostics seen but not expected: 
  File /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing foo1 will be destroyed at the end of the full-expression
  File /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing foo2 will be destroyed at the end of the full-expression
4 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: SemaCXX/attr-lifetimebound.cpp


Testing Time: 58.00s

Total Discovered Tests: 45353
  Skipped          :    10 (0.02%)
  Unsupported      :  3785 (8.35%)
  Passed           : 41531 (91.57%)
  Expectedly Failed:    26 (0.06%)
  Failed           :     1 (0.00%)
FAILED: tools/clang/test/CMakeFiles/check-clang /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/CMakeFiles/check-clang 
cd /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test && /home/buildbot/sandbox/bin/python3 /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/llvm-lit -sv --param USE_Z3_SOLVER=0 /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test
ninja: build stopped: subcommand failed.
make: *** [check-llvm] Error 1
['make', '-f', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-zorg/zorg/buildbot/builders/annotated/ve-linux-steps.make', 'check-llvm', 'BUILDROOT=/scratch/buildbot/bothome/clang-ve-ninja/build'] exited with return code 2.
The build step threw an exception...
Step 8 (check-llvm) failure: check-llvm (failure)
...
[294/300] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
[295/300] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
[296/300] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[297/300] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[298/300] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[299/300] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[299/300] Running the Clang regression tests
-- Testing: 21180 tests, 48 workers --
llvm-lit: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: Clang :: SemaCXX/attr-lifetimebound.cpp (17646 of 21180)
******************** TEST 'Clang :: SemaCXX/attr-lifetimebound.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang -cc1 -internal-isystem /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
error: 'expected-warning' diagnostics expected but not seen: 
  File /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing the foo1 will be destroyed at the end
  File /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing the foo2 will be destroyed at the end
error: 'expected-warning' diagnostics seen but not expected: 
  File /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing foo1 will be destroyed at the end of the full-expression
  File /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing foo2 will be destroyed at the end of the full-expression
4 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: SemaCXX/attr-lifetimebound.cpp


Testing Time: 58.00s

Total Discovered Tests: 45353
  Skipped          :    10 (0.02%)
  Unsupported      :  3785 (8.35%)
  Passed           : 41531 (91.57%)
  Expectedly Failed:    26 (0.06%)
  Failed           :     1 (0.00%)
FAILED: tools/clang/test/CMakeFiles/check-clang /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/CMakeFiles/check-clang 
cd /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test && /home/buildbot/sandbox/bin/python3 /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/llvm-lit -sv --param USE_Z3_SOLVER=0 /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test
ninja: build stopped: subcommand failed.
make: *** [check-llvm] Error 1
['make', '-f', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-zorg/zorg/buildbot/builders/annotated/ve-linux-steps.make', 'check-llvm', 'BUILDROOT=/scratch/buildbot/bothome/clang-ve-ninja/build'] exited with return code 2.
The build step threw an exception...

```

</details>

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


More information about the cfe-commits mailing list