1 // PR c++/27508 2 // { dg-do compile } 3 4 namespace N 5 { 6 struct A { ~A(); }; 7 } 8 ~A()9 N::~A () {} // { dg-error "not a class-name" } 10