Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/nontype-class66.C

raw
1 // PR c++/109095
2 // { dg-do compile { target c++20 } }
3
4 template< typename T >
5 struct bar
6 {};
7
8 template< int X >
9 struct baz
10 {};
11
12 template< auto N, template< auto N2 > typename TT >
13 struct foo;
14
15 template< typename T, bar< T > B, template< T N2 > typename TT >
16 struct foo< B, TT >
17 {};
18
19 foo< bar< int >{}, baz > x;