| 1 |
// { dg-do compile } |
| 2 |
// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org> |
| 3 |
// DR76: Are const volatile variables considered "constant expressions"? |
| 4 |
|
| 5 |
volatile const int a = 5; |
| 6 |
|
| 7 |
template <int> struct K; |
| 8 |
template struct K<a>; // { dg-error "" } |