diagnostics: move output formats from diagnostic.{c,h} to their own files
[official-gcc.git] / gcc / testsuite / g++.dg / template / static2.C
blob84342be4d89221bded60b6008b39a34a3fdb4b20
1 class A;
3 template<int A::* P>
4 class B
6 public:
7   static int A::* const p = P; // { dg-error "25:'constexpr' needed" "" { target c++11 } }
8   // { dg-error "25:invalid in-class" "" { target c++98_only } .-1 }
9   // { dg-error "29:template parameter" "" { target c++98_only } .-2 }
12 class A
14 public:
16 int dummy;
18 B<&A::dummy> d;