blob: 88ec42bece7c9c24db0221edd931402247e3d3f5 [file] [log] [blame]
// { dg-do compile }
struct Visitor;
struct Ast
{
virtual void accept (Visitor& v);
};
void
Ast::accept (Visitor& v)
{
v (*this); // { dg-error "no match for call" }
}