1 // PR c++/33843
2 
3 struct A {};
4 
foo(A * p ())5 void foo(A* p())
6 {
7   p->A::~A(); // { dg-error "A::~A" }
8 }
9