☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing13.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/Wnarrowing13.C
code
plain
raw
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
};