2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / operator2.C
bloba9ebde0d4f5954493a2b55ec83fdae94c846379a
1 // PR c++/7906
2 // Origin: Marcel Loose <loose@astron.nl>
3 // { dg-do compile }
5 template <typename> struct A { typedef int X; };
7 template <typename T> struct B
9     typedef A<T> Y;
10     struct C { operator typename Y::X() const; };
13 template <typename T> B<T>::C::operator typename B<T>::Y::X() const { return 0; }
15 B<int> b;