// Copyright (C) 2001 Free Software Foundation // Contributed by Kriang Lerdsuwanakij // { dg-do compile } template struct A { template class B {}; // { dg-error "candidates" } }; template