// pr C++/86374 // bogus lookup error template struct list { static const int index = 1; template struct addWithChecking {}; }; template struct find { static const int result = 0; }; template template struct list::addWithChecking { static const int xres = find >::result; // bogus error about index here. };