blob: 429e421b8979637cb9a759424b2b58dfd4650c34 (
plain)
1
2
3
4
5
6
7
8
9
|
// { 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
};
|