3 // { dg-prune-output "note" }
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|constant expression" }
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|constant expression" }
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|constant expression" }
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|constant expression" }