[PR c++/86374] Name lookup failure in enclosing template
[official-gcc.git] / gcc / testsuite / g++.dg / pr86374.C
blobfd7115626e10ea7ae5808cc82820449ffefc3b8c
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 };
9 template<typename container, int ix = container::index>
10 struct find {
11   static const int result = 0;
14 template <class LIST>
15 template<class O>
16 struct list<LIST>::addWithChecking<O*>
18   static const int xres =
19     find<list<LIST> >::result; // bogus error about index here.