// { dg-options "-std=c++0x" } template struct A { static void foo() { int i = N; // { dg-error "not expanded|N" } } }; void bar() { A<0>::foo(); }