template struct A { void foo () const {} char A; }; void bar() { A().foo(); }