This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/70070] ICE on initializing character data beyond min/max bound


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

kargl at gcc dot gnu.org changed:

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

--- Comment #3 from kargl at gcc dot gnu.org ---
(In reply to Gerhard Steinmetz from comment #0)
> This code accidentally accesses invalid data :
> 
> 
> $ cat z1.f90
> program p
>    integer :: i
>    character(1) :: c
>    data (c(i:i), i=1,11) /11*'c'/
> end
> 
> $ gfortran-6 z1.f90
> *** Error in `/usr/lib64/gcc/x86_64-suse-linux/6/f951': free(): invalid next
> size (fast): 0x00000000029ac080 ***
> ...

This appears to be fixed on 5, 6, and trunk.  Can you please check
with updated versions of at least trunk?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]