1// { dg-do compile }
2
3// Origin: mleone@pixar.com
4//	   Wolfgang Bangerth <bangerth@ticam.utexas.edu>
5
6// PR c++/9783: Forward declaration of class in template.
7
8template <typename T>
9struct C {
10  void foo (struct X *);
11};
12
13struct X {};
14
15template <typename T>
16void C<T>::foo(struct X *) {}
17