public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67614] New: ICE on using arithmetic if with null
@ 2015-09-17 18:03 gerhard.steinmetz.fortran@t-online.de
  2015-09-17 18:04 ` [Bug fortran/67614] " gerhard.steinmetz.fortran@t-online.de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-09-17 18:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67614

            Bug ID: 67614
           Summary: ICE on using arithmetic if with null
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Some cases with oldstyle arithmetic if in combination with null
instead of a scalar-numeric-expr :


$ cat z1.f90
program p
   integer, allocatable :: z
   if ( null(z) ) 1, 2, 3
 1 stop 1
 2 stop 2
 3 stop 3
end

$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z1.f90
internal compiler error: in gfc_build_const, at fortran/trans-const.c:76



$ cat z2.f90
program p
   integer, pointer :: z
   if ( null(z) ) 1, 2, 3
 1 stop 1
 2 stop 2
 3 stop 3
end

$ gfortran z2.f90
internal compiler error: in gfc_build_const, at fortran/trans-const.c:76


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

end of thread, other threads:[~2015-09-25 23:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-17 18:03 [Bug fortran/67614] New: ICE on using arithmetic if with null gerhard.steinmetz.fortran@t-online.de
2015-09-17 18:04 ` [Bug fortran/67614] " gerhard.steinmetz.fortran@t-online.de
2015-09-17 23:03 ` dominiq at lps dot ens.fr
2015-09-23 23:06 ` kargl at gcc dot gnu.org
2015-09-24 14:38 ` gerhard.steinmetz.fortran@t-online.de
2015-09-24 14:40 ` gerhard.steinmetz.fortran@t-online.de
2015-09-25 22:31 ` kargl at gcc dot gnu.org
2015-09-25 22:59 ` kargl at gcc dot gnu.org
2015-09-25 23:03 ` kargl at gcc dot gnu.org

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