Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / error15.C
blobb7c7bc8ca47da71d7c2641b59c6ab126d0218b26
1 // PR c++/16929
3 template <class T>
4 class A {
5   int x;
6 };
8 template <class T>
9 class B {
10 protected:
11     
12   A<T> a; // { dg-error "" }
13     
14   void f(const A<T> * a1 = &a); // { dg-error "this location" }
15     
16   void g(void);
19 template <class T>
20 void B<T>::g(void) {
21   f(); // { dg-error "default argument" }
24 template class B<long>;