// PR c++/62072 // { dg-do compile { target c++11 } } template struct tuple_size {}; template struct tuple_size : tuple_size {}; template struct query { static constexpr bool value = false; }; template struct query::type> { static constexpr bool value = true; }; // fine static_assert( !query::value, "" ); static_assert( !query::value, "" ); // error: invalid use of incomplete type 'struct tuple_size' static_assert( !query::value, "" );