The linkage of friend functions and classes is unclear, if the first (and possibly only) declaration is in a class. https://cplusplus.github.io/CWG/issues/2588.html