c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / nontype-class49.C
blobc83e4075ed070f12845cf76734dc6233b22f27e1
1 // PR c++/101883
2 // { dg-do compile { target c++20 } }
4 template<class T> struct C { constexpr C(int) { } };
5 explicit C(int) -> C<int>;
7 template<C c> struct X { };
8 X<1> x; // { dg-error "deduction|no match" }