[Bug fortran/67614] New: ICE on using arithmetic if with null
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Thu Sep 17 18:03:00 GMT 2015
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
More information about the Gcc-bugs
mailing list