| 1 |
// PR c++/85977, Incorrect handling of array reference size deduction |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template <typename T, int N> |
| 5 |
void fn (const T (&)[N]) { static_assert (N == 3, "fn"); } |
| 6 |
|
| 7 |
void |
| 8 |
bar () |
| 9 |
{ |
| 10 |
fn ({1, 2, 3}); |
| 11 |
} |