// PR c++/19397 // { dg-do compile } template struct A { typedef int ::template; // { dg-error "template" } };