OSDN Git Service

PR c++/44148
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / tc1 / dr76.C
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 "" }