// PR c++/67021 // { dg-do compile { target c++11 } } template struct Dummy; template<> struct Dummy {}; template struct all_same { static constexpr bool value = true; }; template struct all_same : all_same {}; template struct all_same { static constexpr bool value = false; }; template using ValueType = int; template constexpr bool A(I i) { return all_same, ValueType>::value; } int main() { static_assert(A(42), ""); }