1struct A 2{ 3 int foo () const { return 0; } 4}; 5 6template <typename> void bar (int x[], const A &a) 7{ 8 const int i=a.foo(); 9 x[i]=0; 10} 11