gcc/testsuite/g++.dg/cpp2a/lambda-targ5.C
raw| 1 | // PR c++/115378 |
| 2 | // { dg-do compile { target c++20 } } |
| 3 | |
| 4 | struct tt {}; |
| 5 | |
| 6 | template<class Slot, auto Tag = []{}> |
| 7 | constexpr auto __counter = 1; |
| 8 | |
| 9 | template <class Child, int Counter> |
| 10 | using _as_base = tt; |
| 11 | |
| 12 | template <class... Envs> |
| 13 | struct env : _as_base<Envs, __counter<int>>... {}; |
| 14 | |
| 15 | env<int> t; |