@LightnessRacesinOrbit isn't the code violating 7.1.2/4; "An inline function shall be defined in every translation unit in which it is ODR-used and shall have exactly the same definition in every case"?
@refp yes, it's violating ODR in a very subtle way. The definition looks the same, but isn't because the static is a different variable in different TUs