[Bug fortran/90890] segfault on LHS memory reallocation

2019-06-17 Thread bharat.mahajan at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890 --- Comment #6 from Bharat Mahajan --- (In reply to Steve Kargl from comment #5) > You got lucky. You gave the compiler invalid code. It can do > anything with the code (including giving you a result that you > may expect). > Ok I see. I chec

[Bug fortran/90890] segfault on LHS memory reallocation

2019-06-16 Thread bharat.mahajan at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890 --- Comment #4 from Bharat Mahajan --- (In reply to Steve Kargl from comment #3) > On Sat, Jun 15, 2019 at 11:08:43PM +0000, bharat.mahajan at hotmail dot com > wrote: > > > > I forgot to mention that code runs with no issues

[Bug fortran/90890] segfault on LHS memory reallocation

2019-06-15 Thread bharat.mahajan at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890 --- Comment #2 from Bharat Mahajan --- (In reply to kargl from comment #1) > (In reply to Bharat Mahajan from comment #0) > > The following program fails with segfault: > > > > program test > > implicit none > > real, dimension(:), allo

[Bug fortran/90890] New: segfault on LHS memory reallocation

2019-06-15 Thread bharat.mahajan at hotmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: bharat.mahajan at hotmail dot com Target Milestone: --- The following program fails with segfault: program test implicit none real, dimension(:), allocatable :: a integer :: b a = [a, 2.0] b = -100 end