| 1 |
// PR c++/101677 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
|
| 4 |
template<class T> |
| 5 |
concept C_bug_with_forward_decl = requires(T& t){ |
| 6 |
t.template f<class S>(); |
| 7 |
}; |
| 8 |
|
| 9 |
struct good { |
| 10 |
template<class T> void f() {} |
| 11 |
}; |
| 12 |
|
| 13 |
static_assert(C_bug_with_forward_decl<good>); |