Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/class-deduction40.C

raw
1 // PR c++/81180
2 // { dg-do compile { target c++17 } }
3
4 template < int I > struct int_{};
5
6 template < typename T >
7 struct A{
8 template < typename U, int I >
9 struct B{
10 B(U u, int_< I >){}
11 };
12 };
13
14
15 int main(){
16 A< int >::B v(0, int_< 0 >());
17 (void)v;
18 }
19