1 2 3 4 5 6 7 8 9 10 11 12 13
// Test to make sure we do not ICE on this invalid program. // { dg-do compile } // { dg-options "" } struct A { static int i; int j; }; A a = { i:0 }; // { dg-error "non-static data member" }