Why do you believe it’s a false-positive/false-negative?
I don’t really understand the relation of the rule explanation to this piece of code, to be honest.
Yes, that indeed seems to be a false positive; you can mark it as such in the SonarQube and SonarCloud products. It won’t show up in subsequent analysis runs, then.
I also cannot reproduce it on godbolt.org (check the upper, right-hand side window that shows Sonar’s findings).