aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-targ5.C
blob: efd4bb45d5874be5f59f6407ac18fd23ca3ab33f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/115378
// { dg-do compile { target c++20 } }

struct tt {};

template<class Slot, auto Tag = []{}>
constexpr auto __counter = 1;

template <class Child, int Counter>
using _as_base = tt;

template <class... Envs>
struct env : _as_base<Envs, __counter<int>>... {};

env<int> t;