[Bug fortran/89282] Garbage arithmetics results in fortran with -O3 and overloaded operators
perini at wisc dot edu
gcc-bugzilla@gcc.gnu.org
Mon Feb 11 11:17:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89282
--- Comment #3 from federico <perini at wisc dot edu> ---
Thanks Dominique.
- Output from gcc 5.3.0 has the same issue:
type(t) object <r1>, size=5
x(1) = 2.00000E+00
x(2) = 2.00000E+00
x(3) = 2.00000E+00
x(4) = 2.00000E+00
x(5) = 4.25474E+15
type(t) object <r1>, size=6
x(1) = 2.00000E+00
x(2) = 2.00000E+00
x(3) = 2.00000E+00
x(4) = 2.00000E+00
x(5) = 2.00000E+00
x(6) = 2.00000E+00
- Output from gcc 7.4.0 doesn't have this issue anymore:
type(t) object <r1>, size=5
x(1) = 2.00000E+00
x(2) = 2.00000E+00
x(3) = 2.00000E+00
x(4) = 2.00000E+00
x(5) = 2.00000E+00
type(t) object <r1>, size=6
x(1) = 2.00000E+00
x(2) = 2.00000E+00
x(3) = 2.00000E+00
x(4) = 2.00000E+00
x(5) = 2.00000E+00
x(6) = 2.00000E+00
Maybe it's been solved as part of other bugs I couldn't find by searching?
Federico
More information about the Gcc-bugs
mailing list