4 friend int foo(bool = true) { return 1; } // { dg-message "14:previous" }
5 friend int foo(bool); // { dg-error "14:friend declaration" }
6 template<typename> friend int bar(bool = true) { return 1; } // { dg-message "33:previous" }
7 template<typename> friend int bar(bool); // { dg-error "33:friend declaration" }