https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114731
--- Comment #21 from Alejandro Colomar <alx at kernel dot org> --- It would be interesting to learn why MSVC gets it right. Maybe there's a deterministic way to avoid this warning. Although maybe it's just that they're doing heuristics.