Fix source range of implicitly instantiated friend declaration.