| 1 |
// PR c++/88092 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
|
| 4 |
template<typename T> |
| 5 |
struct S { |
| 6 |
constexpr S(...) { } |
| 7 |
}; |
| 8 |
|
| 9 |
template <typename T> S(T) -> S<T>; |
| 10 |
|
| 11 |
template <S s> struct foo { }; |
| 12 |
|
| 13 |
template <S s> |
| 14 |
void fn () |
| 15 |
{ |
| 16 |
auto t = s; |
| 17 |
foo<t> f1; |
| 18 |
foo<s> f2; |
| 19 |
} |