// PR c++/105550 // { dg-do compile { target c++11 } } template struct pair { constexpr pair(int, int) {} }; template pair minmax(const _Tp &__a, const _Tp &__b, _Compare) { return 0 ? pair(__b, __a) : pair(__a, __b); } typedef int value_type; typedef int compare_type; template pair minmax(const value_type &, const value_type &, compare_type);