view gcc/testsuite/g++.dg/pr86374.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

// 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.
};