[Bug fortran/67615] ICE on using arithmetic if with array instead of scalar

gerhard.steinmetz.fortran@t-online.de gcc-bugzilla@gcc.gnu.org
Thu Sep 17 18:07:00 GMT 2015


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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
With an array constructor :


$ cat z6.f90
program p
   if ( [1] ) 1, 2, 3
   if ( [1, -1] ) 1, 2, 3
   if ( [real :: 1, -1] ) 1, 2, 3
 1 stop 1
 2 stop 2
 3 stop 3
end


$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z6.f90
z6.f90:2:0:

    if ( [1] ) 1, 2, 3
 1
internal compiler error: in gfc_conv_array_constructor_expr, at
fortran/trans-expr.c:6326



More information about the Gcc-bugs mailing list