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