blob: 15ba1c271822a8c4b93a69195d13c6cda241b3a5 [file] [log] [blame]
// { dg-do compile }
// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
// PR c++/9453
// Access checking when template friend is defined in class.
template <typename> class X {
private:
struct Inner;
template <typename R>
friend typename X<R>::Inner * foo (X<R>*) { return 0; }
};
template class X<void>;
X<void>* p;
struct U {
void bar () { foo (p); }
};