Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / Wnarrowing13.C
blob3750f293df3db0b4d15a07e313e7ea9612de304f
1 // PR c++/78244
2 // { dg-do compile { target c++11 } }
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 };