1 2 3 4 5 6 7 8 9 10 11 12
// { dg-do assemble } class A { public: static int a; }; class B : public A { public: static int b; }; int B::a; // { dg-error "" }