3 // { dg-options "-std=c++0x" }
5 template<const char *, int> struct A {};
6 const char func[] = "abc";
7 template<int N> struct A<func, N> {}; // { dg-error "cannot appear|is invalid|not a valid" }
12 template<const char *, int> struct B {};
13 template<int N> struct B<__FUNCTION__, N> {}; // { dg-error "cannot appear|is invalid|is not a valid" }
18 template<const char *, int> struct C {};
19 template<int N> struct C<__PRETTY_FUNCTION__, N> {}; // { dg-error "cannot appear|is invalid|is not a valid" }
24 template<const char *, int> struct D {};
25 template<int N> struct D<__func__, N> {}; // { dg-error "cannot appear|is invalid|is not a valid|function scope" }