summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/op1.C
blob: 7cc9c9e91c2c9cbf12c427073dd0b118c9c62cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
template <class T> struct X {
    typedef int type;
};

template <class T> struct O {
    struct I {
        operator typename X<T>::type ();
    };
};

template <class T>
O<T>::I::operator typename X<T>::type () {}