Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist103.C

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 }