https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116127
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- CCing Jonathan as libstdc++ maintainer. I'm not aware of any replacement. As math libraries don't actually implement any variant, one would need a GCC builtin which would be constexpr and in constant evaluation never write signgam and when not constexpr evaluated allow signgam to be modified but making it unspecified (so that it could be folded to constant without signgam modification).