Debian Codegraph @

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

raw
1 // PR c++/101883
2 // { dg-do compile { target c++20 } }
3
4 template<class T> struct C { constexpr C(int) { } };
5 explicit C(int) -> C<int>;
6
7 template<C c> struct X { };
8 X<1> x; // { dg-error "deduction|no match" }