2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memclass6.C
blobb462b920ff32225d8aa30439386076f91bc7f924
1 // { dg-do run  }
2 // Compiler: egcs-2.91.12 980302
3 // Error:    compiler error in ctor of 'foo::bar<T>::bar(T const &)'
5 struct foo
7   template <typename T>
8         struct bar
9         {
10           bar(T const &t) : tt(t) {}
11           T tt;
12         };
15 int main()
17   foo::bar<int> fb(3);
18   return 0;