https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90890

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |kargl at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to Bharat Mahajan from comment #0)
> The following program fails with segfault:
> 
> program test
>     implicit  none
>     real, dimension(:), allocatable :: a    
>     integer :: b
> 
>     a = [a, 2.0]
>     b = -100
> end program test
> 
> Compiled it without any option to gfortran on MingW (Win10). If you comment
> out the line "b=-100" then it works! gfortran version:
> 
> GNU Fortran (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0

The code is invalid.  In the expression 'a = [a, 2.0]'
you reference 'a' on the RHS when it is undefined.

Reply via email to