summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash32.C
blob: df6aa55a4a512cb3b75be0c9e05088533831e78a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { 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" "" }
}