OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / operator2.C
1 // PR c++/7906
2 // Origin: Marcel Loose <loose@astron.nl>
3 // { dg-do compile }
4
5 template <typename> struct A { typedef int X; };
6
7 template <typename T> struct B
8 {
9     typedef A<T> Y;
10     struct C { operator typename Y::X() const; };
11 };
12
13 template <typename T> B<T>::C::operator typename B<T>::Y::X() const { return 0; }
14
15 B<int> b;