This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]