https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78062
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2016-10-21 CC| |marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Well, running the code snippet with all GCC releases I have (and all optimizations levels), I can see: $ gfortran pr78062.f -O2 $ ./a.out -0.10562482917315752 -0.99440605160172935 May I ask you what's your target and version of GCC?