| 1 |
// PR c++/70543 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template <typename> |
| 5 |
struct X |
| 6 |
{ |
| 7 |
template <unsigned int = 0> |
| 8 |
static constexpr int |
| 9 |
calc (void) |
| 10 |
{ |
| 11 |
return 0; |
| 12 |
} |
| 13 |
|
| 14 |
static constexpr unsigned int value = calc (); |
| 15 |
|
| 16 |
char foo[value]; |
| 17 |
}; |