// PR debug/80461 // { dg-do compile } // { dg-options "-g -O" } template class A; struct B { template static bool foo (U T::*) { return true; } }; template class J; template class J : public J {}; template class J : public B {}; template struct A { template using K = int; template , typename = K> A (L); }; template template A::A (L x) { J::foo (x); } struct N; volatile int v; template void bar () { O q; A

f = q; v++; } void baz () { bar (); bar (); bar (); }