https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116738
--- Comment #3 from Petr <kobalicek.petr at gmail dot com> --- Maybe marking it as confirmed would be appropriate then? I think as a workaround it would be better to not constant fold code that GCC cannot compute properly - that would mean properly calculating the values at runtime. I have no idea what else this would impact though.