Issue 175025
Summary Add support for tracking Container<Pointer>
Labels clang:temporal-safety
Assignees
Reporter usx95
    ```cpp
#include <optional>

struct [[gsl::Owner]] T {};

struct [[gsl::Pointer]] S {
 S(const T&);
};

std::optional<S> f3() {
  T t;
  return S(t); // No error
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to