https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116331
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Not a bug, see PR 79973 which talks about constant folding vs runtime implementation of atanh but the same applies to cos here. a 1ulp difference is very much acceptable difference really. Note clang/LLVM incorrectly rejects the code if change to use constexpr instead of const and -std=c++26 (std::cos in C++26 is required to be constexpr). *** This bug has been marked as a duplicate of bug 79973 ***