// PR c++/71225 // { dg-do compile { target c++11 } } template struct A; template struct B; template struct C { struct D { template (), int>::type = 0> void foo () const {} template (), int>::type = 0> void foo () const {} void bar () { foo (); } }; };