// { dg-do compile { target c++11 } } template struct function_traits; template struct function_traits { typedef R result_type; }; template struct same_type { static const bool value = false; }; template struct same_type { static const bool value = true; }; int a0[same_type::result_type, int>::value? 1 : -1]; int a1[same_type::result_type, int>::value? 1 : -1]; int a2[same_type::result_type, int>::value? 1 : -1];