[Bug fortran/79440] internal compiler error: in fold_convert_loc, at fold-const.c:2373
berke.durak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 12 05:50:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79440
Berke Durak <berke.durak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |berke.durak at gmail dot com
--- Comment #2 from Berke Durak <berke.durak at gmail dot com> ---
I get a similar error with 7.0.1:
% cat crash.f90
module gogol
implicit none
type plop
end type plop
contains
function create() result(this)
class(plop), allocatable :: this
allocate(this)
end function create
end module gogol
program foo
use gogol
implicit none
type(plop), allocatable :: x
x=create()
contains
end program foo
% gfortran crash.f90
crash.f90:17:0:
x=create()
internal compiler error: in fold_convert_loc, at fold-const.c:2361
0x864863 fold_convert_loc(unsigned int, tree_node*, tree_node*)
../../src/gcc/fold-const.c:2361
0x6a5d7a gfc_allocate_using_malloc(stmtblock_t*, tree_node*, tree_node*, tre
e_node*)
../../src/gcc/fortran/trans.c:662
0x6de110 trans_class_assignment
../../src/gcc/fortran/trans-expr.c:9693
0x6de110 gfc_trans_assignment_1
../../src/gcc/fortran/trans-expr.c:10031
0x6a38ff trans_code
../../src/gcc/fortran/trans.c:1817
0x6c8907 gfc_generate_function_code(gfc_namespace*)
../../src/gcc/fortran/trans-decl.c:6296
0x65dac6 translate_all_program_units
../../src/gcc/fortran/parse.c:6051
0x65dac6 gfc_parse_file()
../../src/gcc/fortran/parse.c:6251
0x6a043f gfc_be_parse_file
../../src/gcc/fortran/f95-lang.c:204
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
More information about the Gcc-bugs
mailing list