Debian Codegraph @

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

raw
1 // { dg-do compile { target c++17 } }
2 // { dg-options "-fconcepts" }
3
4 template<typename T>
5 concept bool C() { return true; } // { dg-error "the .bool. keyword|function concepts" }
6 template bool C<int>(); // { dg-error "template function|not a function template|expected" }
7
8 template<typename T>
9 concept bool D = true; // { dg-error "the .bool. keyword|variable concepts are no longer supported" }
10 template bool D<int>; // { dg-error "not a template function|expected" }