1 // PR c++/65080 2 // { dg-do compile { target c++11 } } 3 4 template <typename T> xxx()5static constexpr T xxx(){ return T(); } 6 7 template <typename T> 8 struct foo { 9 using type = T(*)(); 10 static constexpr type value[1] = {&xxx<T>}; 11 }; 12 13 template <typename T> 14 constexpr typename foo<T>::type foo<T>::value[1]; 15 main()16int main() { 17 constexpr int x = foo<int>::value[0](); 18 } 19