1 // PR c++/65727 2 // { dg-do compile { target c++11 } } 3 4 struct type_a { void(*cb)(); }; 5 6 struct type_b 7 { 8 type_b(type_a p); 9 void dummy(); 10 }; 11 12 template<class T> function_c(T ** t)13constexpr T function_c(T**t) {return **t;} 14 15 class type_d { 16 public: 17 static void dummy(); 18 }; 19 class type_e { 20 public: 21 static type_b b; 22 type_d *d[1]; 23 }; 24 25 type_b type_e::b = {{[](){decltype(function_c(type_e::d))::dummy();}}}; 26