FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.dg / parse / tmpl-tmpl-operator1.C
blobdcf2852d1e3dfa29d9d1e1d56eddd721561d668b
1 // PR c++/8857
2 // Origin: Martin v. Loewis <loewis@informatik.hu-berlin.de>
3 // { dg-do compile }
5 template <typename T> struct A
7     template <typename U> operator U() { return sizeof(U); }
8 };
10 template <typename T> struct B
12     template <template <typename U> class X> operator X<double>() { return X<double>(); }
15 int main()
17   A<double> a;
18   B<long> b;
19   a = b;