summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/casting-operator1.C
blob: 867221a35a56b93c3606a79e8a197fe741f6265b (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/8578
// Origin: <Delana.Lorenzo@libero.it>
// { dg-do compile }

template <typename T> struct A
{
    typedef typename T::X X;
    operator X();
};

template <typename T> A<T>::operator typename A<T>::X () {}