aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/friend38.C
blob: f2343d0d7d16458226c3f062b8913ceac162ed93 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-options "-std=c++98 -pedantic-errors" }
// { dg-do assemble  }

// Overly simplified from testcase by "B. K. Oxley" <binkley@bigfoot.com>

template<class P, class Q> struct foo {
  typedef P parent_type;
  friend parent_type; // { dg-error "" } template parameters cannot be friends
  friend Q;           // { dg-error "" } template parameters cannot be friends
};