FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / friend45.C
blob17f8dd565987051c52cbdd47b5e857f71845a5c8
1 // Build don't link:
2 // 
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>;         // ERROR - friend must use aggr tag
13 X<int> g;