https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110321
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > You can use (a == (double)2.2) to make the comparison work. Or use -std=gnu++17, or use -std=c++17 -fexcess-precision=fast