// PR c++/71875 // { dg-do link { target c++14 } } template constexpr bool IsMatrix = false; template class Matrix {}; template constexpr bool IsMatrix> = true; template class RowVecExpMatrix; template constexpr bool IsMatrix> = true; int main () { static_assert (IsMatrix>>, "Matrix check error"); static_assert (IsMatrix>, "Input type is not a matrix"); }