2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / access5.C
blobb2da190ff4eb5feb295ce945886abeed31d5be72
1 // { dg-do compile }
2 // Origin: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
4 // PR c++/7348
5 // Access control for typename in function return type
7 class Outer {
8     template <int dim> struct Inner {
9         typedef int T;
10         T foo ();
11     };
12   public:
13     Outer();
16 template <int dim>
17 typename Outer::Inner<dim>::T  Outer::Inner<dim>::foo () {
18   return 1;
21 template struct Outer::Inner<2>;