1 // PR c++/78244 2 // { dg-do compile { target c++11 } } 3 4 template<typename> 5 struct S { 6 static const int i{1.1}; // { dg-error "narrowing conversion" } 7 static const int i2 = {1.1}; // { dg-error "narrowing conversion" } 8 }; 9