3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Aug 2000 <nathan@codesourcery.com>
6 // bug 42. We ICE'd on instantiating a template with a bogus templated friend.
8 template<typename T> struct X
10 template<typename D> friend X<D>; // { dg-error "" } friend must use aggr tag