[Bug fortran/79060] New: gfortran ICE with deferred-length character component initialization
david.sagan at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 11 15:36:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79060
Bug ID: 79060
Summary: gfortran ICE with deferred-length character component
initialization
Product: gcc
Version: 5.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: david.sagan at gmail dot com
Target Milestone: ---
Test program is:
program test
type my_type
character(:), allocatable :: c
end type
type (my_type) var
var = my_type()
end program
Compiler:
mc66:~/Bmad/test> gcc --version
gcc (MacPorts gcc5 5.4.0_0) 5.4.0
Compiling gives:
mc66:~/Bmad/test> gfortran test.f90
test.f90:9:0:
var = my_type()
1
internal compiler error: in
alloc_scalar_allocatable_for_subcomponent_assignment, at
fortran/trans-expr.c:6842
test.f90:9:0: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Note: No bug with gcc 6.3.0
More information about the Gcc-bugs
mailing list