// PR c++/66289 // { dg-do compile { target c++11 } } template struct A {}; template struct shared_ptr { }; template using APtr = shared_ptr>; template struct foo; template struct foo> { }; template struct foo> { }; foo>> aa;