Description
https://gcc.godbolt.org/z/aMzvxerna
struct [[gsl::Pointer]] view {};
struct S {
view s;
};
struct [[gsl::Owner]] Q {
const S* get() const [[clang::lifetimebound]];
};
view g(view b, int c) {
return c > 1 ? Q().get()->s : b;
}