FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp42.C
blob3c11dd4229c560f8214d760c4236a74950c2513f
1 // Build don't run:
2 // GROUPS passed templates membertemplates
3 template<class T, int N>
4 class Foo {
6 public:
7     template<int N2>
8     Foo<T,N> operator=(const Foo<T,N2>& z)
9     {
10         return Foo<T,N>();
11     }
14 int main()
16     Foo<double,4> x;
17     Foo<double,7> y;
18     x = y;
20     return 0;