| 1 |
// PR c++/63283 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
constexpr int array_length(int (&array)[3]) { return 3; } |
| 5 |
int a[] = { 1, 2, 3 }; |
| 6 |
template <typename T> int f() { |
| 7 |
struct { int e[array_length(a)]; } t; |
| 8 |
return sizeof(t); |
| 9 |
} |
| 10 |
int main() { f<void>(); } |