blob: 8eecfe6f81dd2b28d85a133247d2f4de32031fe6 [file] [log] [blame]
// PR c++/85278
// { dg-do compile { target concepts } }
// { dg-message "candidate: .*const decltype\\(f2::a\\)&&" "" { target *-*-* } .+2 }
template<typename T>
void f2(T a)
requires requires (const decltype(a) &&x) { -x; }
{ }
int main() {
f2<void*>(nullptr); // { dg-error "no match" }
}