gcc/testsuite/g++.dg/cpp2a/concepts-lambda4.C
raw| 1 | // { dg-do compile { target c++20 } } |
| 2 | |
| 3 | struct a {}; |
| 4 | template <bool> using b = a; |
| 5 | |
| 6 | template <typename> struct c; |
| 7 | template <typename d> |
| 8 | requires requires(d e) { e[0]; } |
| 9 | struct c<d> { |
| 10 | static constexpr bool f = [] { return false; }.operator()(); |
| 11 | }; |
| 12 | |
| 13 | b<c<unsigned[]>::f> b0{}; |
| 14 |