// PR c++/27808

template<typename T> friend void T::foo; // { dg-error "friend|invalid" }


syntax highlighted by Code2HTML, v. 0.9.1