https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77807
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |trippels at gcc dot gnu.org Resolution|--- |INVALID Severity|major |normal --- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- This is not the right forum to ask these kinds of questions. Your performing integer division. Cast n to long double and it will work.