Debian Codegraph @

gcc/testsuite/g++.dg/concepts/diagnostic9.C

raw
1 // PR c++/85278
2 // { dg-do compile { target concepts } }
3
4 // { dg-message "candidate 1: .*const decltype\\(f2::a\\)&&" "" { target *-*-* } .+2 }
5 template<typename T>
6 void f2(T a)
7 requires requires (const decltype(a) &&x) { -x; }
8 { }
9
10 int main() {
11 f2<void*>(nullptr); // { dg-error "no match" }
12 }