Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist103.C
blob: 0c1923c6ab070e67eb4123b80adc7894402fcb0c [
file
] [
log
] [
blame
]
// PR c++/85977, Incorrect handling of array reference size deduction
// { dg-do compile { target c++11 } }
template
<
int
N
>
void
fn
(
const
char
(&)[
N
])
{
}
void
bar
()
{
fn
({
1.2
});
// { dg-error "narrowing" }
}