This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68566] New: 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: Thu, 26 Nov 2015 20:23:19 +0000
- Subject: [Bug fortran/68566] New: ICE on using unusable array in reshape (double free or corruption)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68566
Bug ID: 68566
Summary: ICE on using unusable array in reshape (double free or
corruption)
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
Using wrong defined array a :
$ cat z1.f90
program p
integer, parameter :: n = 2
integer, parameter :: a(:) = 0
integer, parameter :: b(n, n) = reshape([a, 1+a], [n, n])
end
$ gfortran -g -O0 -Wall -fcheck=all z1.f90
*** Error in `/usr/lib64/gcc/x86_64-suse-linux/5/f951': double free or
corruption (fasttop): 0x00000000028e93f0 ***
...
f951: internal compiler error: Aborted