Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/concepts-err1.C

raw
1 // PR c++/103408
2 // { dg-do compile { target c++23 } }
3
4 template<int>
5 concept C = auto([]{}); // { dg-error "constraint" }
6 static_assert(C<0>); // { dg-error "non-constant condition for static assertion" }