1 // PR c++/18698
2 // The compiler was giving an error message for invalid syntax
3 // that irrelevantly talked about using-declarations.
4 
5 template<int> struct A
6 {
7     ::A~();			// { dg-bogus "using-declaration" }
8 };
9 
10 // Instead of the bogus error we get a different error.
11 // { dg-error "template-name|expected" "" { target *-*-* } 7 }
12