[Bug fortran/68566] New: ICE on using unusable array in reshape (double free or corruption)

gerhard.steinmetz.fortran@t-online.de gcc-bugzilla@gcc.gnu.org
Thu Nov 26 20:23:00 GMT 2015


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


More information about the Gcc-bugs mailing list