This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57160] short-circuit IF only with -ffrontend-optimize
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Jul 2018 19:02:29 +0000
- Subject: [Bug fortran/57160] short-circuit IF only with -ffrontend-optimize
- Auto-submitted: auto-generated
- References: <bug-57160-4@http.gcc.gnu.org/bugzilla/>
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).