[clang] [LifetimeSafety] Track dereference operators for GSL pointers in STL (PR #176643)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 18 04:17:17 PST 2026


github-actions[bot] wrote:

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

* 85458 tests passed
* 1213 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.SemaCXX/attr-gsl-owner-pointer-std.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/23/include -nostdsysteminc -ast-dump /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/attr-gsl-owner-pointer-std.cpp |  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --implicit-check-not OwnerAttr --implicit-check-not PointerAttr /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/attr-gsl-owner-pointer-std.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/23/include -nostdsysteminc -ast-dump /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/attr-gsl-owner-pointer-std.cpp
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --implicit-check-not OwnerAttr --implicit-check-not PointerAttr /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/attr-gsl-owner-pointer-std.cpp
# .---command stderr------------
# | command line:1:22: error: IMPLICIT-CHECK-NOT: excluded string found in input
# | -implicit-check-not='PointerAttr'
# |                      ^
# | <stdin>:318:9: note: found here
# | | | | |-PointerAttr 0xd111758 <<invalid sloc>> Implicit
# |         ^~~~~~~~~~~
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaCXX/attr-gsl-owner-pointer-std.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           .
# |           .
# |           .
# |         313: | | | | |-CopyConstructor simple trivial has_const_param needs_implicit implicit_has_const_param 
# |         314: | | | | |-MoveConstructor exists simple trivial needs_implicit 
# |         315: | | | | |-CopyAssignment simple trivial has_const_param needs_implicit implicit_has_const_param 
# |         316: | | | | |-MoveAssignment exists simple trivial needs_implicit 
# |         317: | | | | `-Destructor simple irrelevant trivial needs_implicit 
# |         318: | | | |-PointerAttr 0xd111758 <<invalid sloc>> Implicit 
# | not:imp2             !~~~~~~~~~~                                      error: no match expected
# |         319: | | | `-CXXRecordDecl 0xd1110f0 <col:1, col:7> col:7 implicit class __unordered_multimap_iterator 
# |         320: | | `-ClassTemplateSpecializationDecl 0xd113c40 <line:101:1, line:102:38> col:7 class __unordered_multimap_iterator definition instantiated_from 0xd110fa0 implicit_instantiation 
# |         321: | | |-DefinitionData pass_in_registers empty aggregate standard_layout trivially_copyable pod trivial literal has_constexpr_non_copy_move_ctor can_const_default_init 
# |         322: | | | |-DefaultConstructor exists trivial constexpr needs_implicit defaulted_is_constexpr 
# |         323: | | | |-CopyConstructor simple trivial has_const_param needs_implicit implicit_has_const_param 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# 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/176643


More information about the cfe-commits mailing list