// PR c++/59480 class Matrix; void rot90 (const Matrix& a, int k = 1) { } template void rot90_ (const Matrix& a, int k = 1) { } class Matrix { friend void rot90 (const Matrix&, int); template friend void rot90_ (const Matrix&, int); }; void rot90 (const Matrix& a, int k); template void rot90_ (const Matrix& a, int k);