blob: 5d93a0e7242bdb87fce4a4f6da9142c04dd2cdea [file] [log] [blame]
// { dg-do compile { target c++17 } }
template <class T>
struct A
{
static constexpr auto x = T::x; // { dg-error "incomplete" }
};
struct B;
A<B> a;
struct B
{
static constexpr auto x = 42;
};
auto x = a.x;