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/77325] ICE in gimplify_var_or_parm_decl, at gimplify.c:1933


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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---

Slightly simplified, indicating an uninitialized variable :


$ cat z3.f90
program p
   character(1), parameter :: c(3) = ['a', 'b', 'c']
   character(:), allocatable :: z(:)
   z = c(1)
   print *, z
end


$ gfortran-7-20160821 -g -O0 -Wall -fcheck=all -c z3.f90
z3.f90:3:0:

    character(:), allocatable :: z(:)

Warning: '.z' may be used uninitialized in this function
[-Wmaybe-uninitialized]

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