1 // PR c++/40308, 40311 2 // { dg-do run { target c++11 } } 3 4 template< typename T > 5 struct test { testtest6 test() : data{} {} 7 8 T data; 9 }; 10 main()11 int main() 12 { 13 test<int> x; 14 test<int*> y; 15 int * a = new int{}; 16 int * b = new int{5}; 17 return 0; 18 } 19