blob: 035dbb161e94691f0181f274c21d9bc6b52a73a0 [file] [log] [blame]
// PR c++/77304
// { dg-do compile { target c++20 } }
struct S {};
template < typename T > struct A
{
template < S > void f () {}
static void * g ()
{
return (void *) f < a >; // { dg-error "invalid" }
}
static S a;
};
void * f ()
{
return A < int >::g ();
}