This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
ICE on assignment to deferred-length character array
- From: Damian Rouson <damian at sourceryinstitute dot org>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Date: Thu, 7 May 2015 22:23:46 -0700
- Subject: ICE on assignment to deferred-length character array
- Authentication-results: sourceware.org; auth=none
I see several deferred-length character variable bug reports in Bugzilla, including a few ICE reports, but I think the ICE below is sufficiently different from the others to warrant a separate submission. I just submitted the following as Bug 66065 in Bugzilla:
$ cat parse_command_line.f90
character(len=:), allocatable :: original,copy(:)
copy = [original]
end
$ gfortran parse_command_line.f90
parse_command_line.f90:2:0:
copy = [original]
^
internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1797
parse_command_line.f90:2:0: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See <
https://trac.macports.org/newticket
> for instructions.
$ gfortran --version
GNU Fortran (MacPorts gcc5 5.1.0_0) 5.1.0