1 // PR c++/51463 2 // { dg-do compile { target c++11 } } 3 4 struct A 5 { 6 static virtual int i = 0; // { dg-error "10:member .i. cannot be declared both .virtual. and .static." } 7 // { dg-error "declared as" "" { target *-*-* } .-1 } 8 }; 9