aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/typedef36.C
blob: 318deef92df8531df70fa9de01b1184d5645982a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Origin: PR c++/45606
// { dg-do compile }

template<class T, class U = int>
struct S0
{
  typedef int const_iterator;
};

template<class T>
struct Test
{
  typedef S0<T> SAlias;
  typedef typename SAlias::const_iterator const_iterator;
  const_iterator begin ();
};

template<class T>
typename S0<T>::const_iterator
Test<T>::begin()
{
  return 0;
}