aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr86374.C
blob: fd7115626e10ea7ae5808cc82820449ffefc3b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// pr C++/86374
// bogus lookup error
template<typename LIST>
struct list {
  static const int index = 1;
  template <typename> struct addWithChecking {};
};

template<typename container, int ix = container::index>
struct find {
  static const int result = 0;
};

template <class LIST>
template<class O>
struct list<LIST>::addWithChecking<O*>
{
  static const int xres =
    find<list<LIST> >::result; // bogus error about index here.
};