/* { dg-do compile } */ /* { dg-options "-gdwarf-4" } */ /* Regression test for an ICE in output_die when using -gdwarf-4. */ namespace { struct A { virtual ~A(); }; struct B : public A { template bool foo(A x[2]) { } }; template struct C { T v[2]; }; template bool X(T &b) { typedef C D; D x[2]; return b.foo(x); } void f() { B b; X(b); } }