This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/70070] ICE on initializing character data beyond min/max bound
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Nov 2016 01:22:13 +0000
- Subject: [Bug fortran/70070] ICE on initializing character data beyond min/max bound
- Auto-submitted: auto-generated
- References: <bug-70070-4@http.gcc.gnu.org/bugzilla/>
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?