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/68566] New: ICE on using unusable array in reshape (double free or corruption)


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

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