blob: f2343d0d7d16458226c3f062b8913ceac162ed93 [file] [log] [blame]
// { 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
};