[Bug fortran/83093] ICE in fold_convert_loc, at fold-const.c:2266

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 26 19:41:00 GMT 2017


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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #3 from kargl at gcc dot gnu.org ---
(In reply to G. Steinmetz from comment #0)
> With invalid code, down to at least 4.8 :
> 
> 
> $ cat z1.f90
> program p
>    character(:), allocatable :: z
>    allocate (character(a) :: z)
> end
> 
> 

This appears to be a case where the individual who 
wrote match.c(gfc_match_type_spec) overlooked that
one needs to check for a valid length_selector.


More information about the Gcc-bugs mailing list