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


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

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