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 
8 template <typename T>
9 struct C {
10   void foo (struct X *);
11 };
12 
13 struct X {};
14 
15 template <typename T>
foo(struct X *)16 void C<T>::foo(struct X *) {}
17