This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68566] ICE on using unusable array in reshape (double free or corruption)
- 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: Wed, 16 Mar 2016 22:25:50 +0000
- Subject: [Bug fortran/68566] ICE on using unusable array in reshape (double free or corruption)
- Auto-submitted: auto-generated
- References: <bug-68566-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68566
--- Comment #4 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Simplified a bit :
$ cat z7.f90
program p
integer, parameter :: a(:) = 1
integer, parameter :: b(2,2) = reshape([a], [2,2])
end
$ gfortran-6 z7.f90
*** Error in `/usr/lib64/gcc/x86_64-suse-linux/6/f951': double free or
corruption (fasttop): 0x0000000003a00630 ***
...
f951: internal compiler error: Aborted