template <typename T> struct A
{
  void foo () const {}
  char A;
};

void bar() { A<void>().foo(); }


syntax highlighted by Code2HTML, v. 0.9.1