This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

ICE on assignment to deferred-length character array


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

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