(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
nested5.C
// PR c++/33959

template <typename T> struct A
{
  struct C
  {
    template <typename U> struct D {};
  };
  template <typename S> static C::template D<S> bar (S const &);
};

struct E {};

int
main ()
{
  E e;
  A<E>::bar (e);
}