blob: 376d63269cb599eb3ca9f5510f9b0383e07b8b02 [file] [log] [blame]
// PR c++/105964
// { dg-do compile { target c++17 } }
struct token {};
struct example {};
template< typename >
struct helper
{
static constexpr auto c() { return 42; }
};
struct impostor_c
{
template< typename T, auto= helper< T >::c >
static example func();
};
example c= impostor_c::func< token >();