// Copyright (C) 2005 Free Software Foundation // Contributed by Kriang Lerdsuwanakij // { dg-do compile } class A { template friend class B; B *b; // { dg-error "type|expected" } };