Description
https://godbolt.org/z/KqM3znMhT
struct S{
S(const int& s [[clang::lifetimebound]]);
};
struct T{
T(const int& t [[clang::lifetime_capture_by(this)]]);
};
void foo() {
S s(1); // Error. Good.
T t(1); // No diagnostic here. Bad.
}