repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing13.C
blob
3750f293df3db0b4d15a07e313e7ea9612de304f
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
};