[Bug fortran/87992] ICE in resolve_fl_variable, at fortran/resolve.c:12314

2018-12-19 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87992

kargl at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords|ice-on-invalid-code |ice-on-valid-code
 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from kargl at gcc dot gnu.org ---
Fixed on trunk.  Closing.

[Bug fortran/87992] ICE in resolve_fl_variable, at fortran/resolve.c:12314

2018-12-19 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87992

--- Comment #4 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Wed Dec 19 22:31:25 2018
New Revision: 267288

URL: https://gcc.gnu.org/viewcvs?rev=267288&root=gcc&view=rev
Log:
2018-12-19  Steven G. Kargl  

PR fortran/87992
* resolve.c (resolve_fl_variable): Avoid a NULL pointer.

2018-12-19  Steven G. Kargl  

PR fortran/87992
* gfortran.dg/pr87992.f90: New test.

Added:
trunk/gcc/testsuite/gfortran.dg/pr87992.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog

[Bug fortran/87992] ICE in resolve_fl_variable, at fortran/resolve.c:12314

2018-12-19 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87992

--- Comment #3 from Steve Kargl  ---
On Wed, Dec 19, 2018 at 04:06:52PM +, gs...@t-online.de wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87992
> 
> --- Comment #2 from G. Steinmetz  ---
> 
> It should be valid code, just as legal as
> 
> $ cat z3.f90
> subroutine s(x)
>class(*), allocatable :: x
>allocate (x, source='')
> end
> 
> $ cat z4.f90
> subroutine s(x)
>class(*), allocatable :: x
>allocate (x, source='abc')
> end
> 
> $ gfortran-9-20181216 -c z4.f90

Thanks for info.  I suppose someday I should learn more
about CLASS.

[Bug fortran/87992] ICE in resolve_fl_variable, at fortran/resolve.c:12314

2018-12-19 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87992

--- Comment #2 from G. Steinmetz  ---

It should be valid code, just as legal as


$ cat z3.f90
subroutine s(x)
   class(*), allocatable :: x
   allocate (x, source='')
end


$ cat z4.f90
subroutine s(x)
   class(*), allocatable :: x
   allocate (x, source='abc')
end


$ gfortran-9-20181216 -c z4.f90
$

[Bug fortran/87992] ICE in resolve_fl_variable, at fortran/resolve.c:12314

2018-12-14 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87992

kargl at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P4
 CC||kargl at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |kargl at gcc dot gnu.org
   Target Milestone|--- |9.0

--- Comment #1 from kargl at gcc dot gnu.org ---
Don't know if code is valid, but I have a patch that fixes
the ICE.  The code compiles.

[Bug fortran/87992] ICE in resolve_fl_variable, at fortran/resolve.c:12314

2018-11-13 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87992

Thomas Koenig  changed:

   What|Removed |Added

   Keywords||ice-on-invalid-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-11-13
 CC||tkoenig at gcc dot gnu.org
 Ever confirmed|0   |1