1 // pr C++/86374
2 // bogus lookup error
3 template<typename LIST>
4 struct list {
5   static const int index = 1;
6   template <typename> struct addWithChecking {};
7 };
8 
9 template<typename container, int ix = container::index>
10 struct find {
11   static const int result = 0;
12 };
13 
14 template <class LIST>
15 template<class O>
16 struct list<LIST>::addWithChecking<O*>
17 {
18   static const int xres =
19     find<list<LIST> >::result; // bogus error about index here.
20 };
21