☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
nontype-class49.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/nontype-class49.C
code
plain
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" }