☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist103.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist103.C
code
plain
raw
1
// PR c++/85977, Incorrect handling of array reference size deduction
2
// { dg-do compile { target c++11 } }
3
4
template <int N>
5
void fn (const char (&)[N]) { }
6
7
void
8
bar ()
9
{
10
fn ({1.2}); // { dg-error "narrowing" }
11
}