Open
Description
https://godbolt.org/z/oedcc359z
struct S { int *x; };
S foo(const int &x [[clang::lifetimebound]]);
void usage() {
S y = foo(1); // Warning. Good.
y = foo(1); // No warning. Bad.
}
https://godbolt.org/z/oedcc359z
struct S { int *x; };
S foo(const int &x [[clang::lifetimebound]]);
void usage() {
S y = foo(1); // Warning. Good.
y = foo(1); // No warning. Bad.
}