1 // { dg-do compile } 2 struct Visitor; 3 4 struct Ast 5 { 6 virtual void accept (Visitor& v); 7 }; 8 9 void accept(Visitor & v)10 Ast::accept (Visitor& v) 11 { 12 v (*this); // { dg-error "no match for call" } 13 } 14