FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memclass6.C
blob65de1d1bd995725f411f0a3e9d77a778e82fa12c
1 // Compiler: egcs-2.91.12 980302
2 // Error:    compiler error in ctor of 'foo::bar<T>::bar(T const &)'
4 struct foo
6   template <typename T>
7         struct bar
8         {
9           bar(T const &t) : tt(t) {}
10           T tt;
11         };
14 int main()
16   foo::bar<int> fb(3);
17   return 0;