public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/57160] New: short-circuit IF only with -ffrontend-optimize
@ 2013-05-03 12:41 Joost.VandeVondele at mat dot ethz.ch
  2013-05-04 19:23 ` [Bug fortran/57160] " burnus at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2013-05-03 12:41 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57160

             Bug #: 57160
           Summary: short-circuit IF only with -ffrontend-optimize
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@mat.ethz.ch


it would be nice to have the short-circuit evaluation of IF statements only if
-ffrontend-optimize is in place. It would help to capture (at -O0) bugs like:

MODULE M1
 TYPE T1
   LOGICAL :: T=.TRUE.
 END TYPE T1
CONTAINS
 SUBROUTINE S1(m)
   TYPE(T1), POINTER :: m
   IF (ASSOCIATED(m) .AND. m%T) THEN
    WRITE(6,*) "X"
   ENDIF
 END SUBROUTINE
END MODULE

USE M1
 TYPE(T1), POINTER :: m=>NULL()
 CALL S1(m)
END

where I would like the code to segfault.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-22  7:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-03 12:41 [Bug fortran/57160] New: short-circuit IF only with -ffrontend-optimize Joost.VandeVondele at mat dot ethz.ch
2013-05-04 19:23 ` [Bug fortran/57160] " burnus at gcc dot gnu.org
2013-07-21 21:08 ` tkoenig at gcc dot gnu.org
2014-12-21 15:18 ` dominiq at lps dot ens.fr
2014-12-22  7:12 ` Joost.VandeVondele at mat dot ethz.ch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).