/cp
[official-gcc.git] / gcc / testsuite / g++.dg / template / error44.C
blob8cf40801efbf056d13e98c04f78f0f09feb26adf
1 // PR c++/32056
3 template <auto int T> struct A {}; // { dg-error "11:storage class specified" "" { target c++98_only } }
4 // { dg-error "two or more" "" { target c++11 } .-1 }
5 template <extern int T> struct B {}; // { dg-error "11:storage class specified" }
6 template <static int T> struct C {}; // { dg-error "11:storage class specified" }
7 template <register int T> struct D {}; // { dg-error "11:storage class specified" }
8 template <mutable int T> struct E {}; // { dg-error "11:storage class specified" }