[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 sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890 --- Comment #5 from Steve Kargl --- On Sun, Jun 16, 2019 at 04:03:50PM +, bharat.mahajan at hotmail dot com wrote: > > Ok I agree that 'a' is undefined in this case. But that was not my concern in > the original submission. To again clarify

[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 +, bharat.mahajan at hotmail dot com > wrote: > > > > I forgot to mention that code runs with no issues with ifort. Second,

[Bug fortran/90890] segfault on LHS memory reallocation

2019-06-15 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890 --- Comment #3 from Steve Kargl --- On Sat, Jun 15, 2019 at 11:08:43PM +, bharat.mahajan at hotmail dot com wrote: > > I forgot to mention that code runs with no issues with ifort. Second, then why > the following code works with gfortran?

[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] segfault on LHS memory reallocation

2019-06-15 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890 kargl at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|