This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/57160] short-circuit IF only with -ffrontend-optimize


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]