Debian Codegraph @

gcc/testsuite/g++.dg/parse/operator2.C

raw
1 // PR c++/7906
2 // Origin: Marcel Loose <[email protected]>
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;