| Issue |
203768
|
| Summary |
[LifetimeSafety] Origin length mismatch in `VisitInitListExpr` when constructing `gsl::Pointer`
|
| Labels |
|
| Assignees |
|
| Reporter |
NeKon69
|
Minimal repro:
```cpp
struct [[gsl::Pointer()]] Ptr { int x; };
struct Owner { int y; };
Ptr f(Owner o) { return Ptr{}; }
```
https://godbolt.org/z/vbb56GeeT
This was found by a local Qwen 3.6 35B3A while testing one of my PRs.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs