summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/specialization1.C
blob: 8a47f177205239744c46ad4662d3777d89771c14 (plain)
1
2
3
4
5
6
7
// PR c++/5723, PR c++/8522
// Origin: Matthias Kleinmann, Peter Karl Mueller <peter.karl.mueller@gmx.de>
// { dg-do compile }

template <typename T> class A;
template <typename T> class A<T>::B; // { dg-error "declaration" "err" }
// { dg-warning "declaration" "warn" { target *-*-* } 6 }