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" }
}