[Bug fortran/57160] short-circuit IF only with -ffrontend-optimize
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 31 19:16:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57160
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
--- Comment #13 from janus at gcc dot gnu.org ---
It should be noted that ifort (version 18.3) gives a nice runtime error for the
code in comment 0 with the proper checking flags:
$ ifort -check all -traceback c0.f90
$ ./a.out
forrtl: severe (408): fort: (7): Attempt to use pointer M when it is not
associated with a target
Image PC Routine Line Source
a.out 00000000004056C0 Unknown Unknown Unknown
a.out 0000000000402CA3 m1_mp_s1_ 8 c0.f90
a.out 0000000000402DAE MAIN__ 16 c0.f90
a.out 0000000000402BAE Unknown Unknown Unknown
libc-2.23.so 00007FF4052CF830 __libc_start_main Unknown Unknown
a.out 0000000000402AA9 Unknown Unknown Unknown
This underlines once more that the code is actually invalid (in case there was
still doubt about that).
More information about the Gcc-bugs
mailing list