// PR c++/28879 // { dg-do compile } // { dg-options "" } struct A { static int i; int j; }; template void foo () { int x[A::i]; //int y[A().j]; } void bar () { foo<6> (); }