// PR c++/64574 template class TraitCheckImpl; template class Swappable; template >::Complete> class Swappable; template struct TraitCheckImpl > { typedef void Complete; }; Swappable s; // { dg-error "" }