Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/class-deduction-alias16.C

raw
1 // PR c++/109321
2 // { dg-do compile { target c++20 } }
3
4 struct A;
5 template<class C1> struct B;
6 template<class, class C2=A> using D = B<C2>;
7 void f () { D() = 0; } // { dg-error "deduction failed|no match" }