3 // Origin: Ivan Godard <igodard@pacbell.net>
5 // PR c++/15410: Declaration of friend class template with wrong
8 template <typename T, typename U> struct F; // { dg-message "previous declaration" }
12 template<int i> friend class F; // { dg-error "template parameter" }
13 int x; // { dg-error "private" }
16 template <typename T, typename U> struct F
18 void Look(W& w) { w.x = 3; } // { dg-error "within this context" }