This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/77325] ICE in gimplify_var_or_parm_decl, at gimplify.c:1933
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Aug 2016 18:04:48 +0000
- Subject: [Bug fortran/77325] ICE in gimplify_var_or_parm_decl, at gimplify.c:1933
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-77325-4@http.gcc.gnu.org/bugzilla/>
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]