rt_gccstream/gcc/testsuite/g++.dg/parse/access10.C

12 lines
323 B
C

// PR c++/18698
// The compiler was giving an error message for invalid syntax
// that irrelevantly talked about using-declarations.
template<int> struct A
{
::A~(); // { dg-bogus "using-declaration" }
};
// Instead of the bogus error we get a different error.
// { dg-error "template-name" "" { target *-*-* } 7 }