(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
pr84973-2.C
// { dg-do compile }

template <int> void a() {
  typedef struct {
    void b() try { b; } catch (short) { // { dg-error "invalid use" }
    }
  } c;
}

int
main() {
  a<0>();
}