OSDN Git Service

PR c++/53549
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / friend2.C
1 // { dg-do compile }
2 // Origin: <struppi@acm.org>
3
4 // PR c++/8591
5 // Template or class detection in friend declaration
6
7 namespace NS {
8   template <class T1, class T2, class T3 = int, class T4 = int>
9   struct C {};
10 }
11
12 template <class T> class X {
13   friend class NS::C;   // { dg-error "template|friend" }
14 };
15
16 X<int> c;