* c-common.c (get_priority): Add check for
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / friend45.C
blob720dfeba0e245a1d03ed52df6af841a8f516aea6
1 // { dg-do assemble  }
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>;         // { dg-error "" } friend must use aggr tag
13 X<int> g;