Open
Description
#include <optional>
#include <string>
#include <string_view>
template <class T>
struct S {
T foo(T&& t [[clang::lifetimebound]]);
};
void use() {
S<std::string_view> s;
std::string_view x = s.foo(std::optional<std::string_view>{}.value()); // False warning here.
}
cc: @hokein @Xazax-hun