1// { dg-do assemble } 2 3// Copyright (C) 2000 Free Software Foundation, Inc. 4// Contributed by Nathan Sidwell 7 Jan 2001 <nathan@codesourcery.com> 5 6// Bug 1033. We ICE'd when trying to make a non template class a templated 7// friend. 8 9class A {}; 10class B { 11 template<class T> friend class A; // { dg-error "" } not a template 12}; 13 14 15