blob: f7b26c9e3ae37d629cc97e08c1bc9a4aab2f05e7 [file] [log] [blame]
template <class Derived>
struct base {
friend void bar(Derived& d) {
d.bar(); // access in inline friend of friend, ok?
}
};
class derived : base<derived> {
friend class base<derived>;
void bar() {}
};
int main() {
derived d;
bar(d);
}