Open
Description
See https://godbolt.org/z/KdGEfdG4r
struct Foo2 {
int& get1() [[clang::lifetimebound]]; // good
int& get2() __attribute__((lifetimebound)); // bad
const int& get3(const int& a __attribute__((lifetimebound))); // good
};
void s() {
Foo2 f;
const int &b = f.get3(1);
}