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

template<int> struct A
{
    struct B
    {
      struct C {};
    };
};

template<int N> void foo()
{
  class A<N>::B::C X;
}

void bar()
{
  foo<0>();
}