[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug fortran/57160] short-circuit IF only with -ffrontend-optimize
From:       "janus at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2018-07-31 19:02:29
Message-ID: bug-57160-4-YIigedmFNX () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

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).=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic