Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-requires28.C
blob: e632f0167f4cef33e3f05d83df6d9f3feded4721 [
file
] [
log
] [
blame
]
// PR c++/101677
// { dg-do compile { target c++20 } }
template
<
class
T
>
concept
C_bug_with_forward_decl
=
requires
(
T
&
t
){
t
.
template
f
<
class
S
>();
};
struct
good
{
template
<
class
T
>
void
f
()
{}
};
static_assert
(
C_bug_with_forward_decl
<good>
);