blob: 862675e5193803fd13a0201103e10d47ff75da7c [file] [log] [blame]
// { dg-do compile { target concepts } }
const auto &f(auto)
{
static int n;
return n;
}
void foo()
{
f(5) = 0; // { dg-error "read-only" }
}