(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1y/
auto-fn61.C
// PR c++/88003
// { dg-do compile { target c++14 } }
// { dg-additional-options "-fchecking" }
// { dg-ice "poplevel_class" }

auto test() {
  struct O {
    struct N;
  };
  return O();
}

typedef decltype(test()) TN;
struct TN::N {};