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
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
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,
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?
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890
kargl at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|