http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59168
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from janus at gcc dot gnu.org ---
(In reply to janus from comment #2)
> Sorry, I can not reproduce this. I have tried with gfortran 4.7, 4.8 and
> trunk using -O0 up to -O3. The result is always:
>
> 67108864.0
> 67108864.0
... which of course is not the result you expect.
However, the solution is simple: Use -fdefault-real-8 or decleare your
variables explicitly as real(8). Single precision, i.e. real(4), does not
provide sufficient precision to represent the final value.
Closing as invalid.