This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/85877] New: [6/7/8/9 Regression] ICE in fold_convert_loc, at fold-const.c:2449
- From: "gscfq at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 May 2018 17:58:57 +0000
- Subject: [Bug fortran/85877] New: [6/7/8/9 Regression] ICE in fold_convert_loc, at fold-const.c:2449
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85877
Bug ID: 85877
Summary: [6/7/8/9 Regression] ICE in fold_convert_loc, at
fold-const.c:2449
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Down to version 4.9, gfortran-4.8 compiles this :
$ cat z1.f90
program p
bind(c) f
x = f()
end
$ gfortran-4.8 -c z1.f90
$
$ gfortran-9-20180520 -c z1.f90
z1.f90:3:0:
x = f()
internal compiler error: in fold_convert_loc, at fold-const.c:2449
0x928f83 fold_convert_loc(unsigned int, tree_node*, tree_node*)
../../gcc/fold-const.c:2449
0x7783cc gfc_trans_scalar_assign(gfc_se*, gfc_se*, gfc_typespec, bool, bool,
bool)
../../gcc/fortran/trans-expr.c:8959
0x786d69 gfc_trans_assignment_1
../../gcc/fortran/trans-expr.c:10264
0x74aef7 trans_code
../../gcc/fortran/trans.c:1828
0x772219 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6507
0x7012a0 translate_all_program_units
../../gcc/fortran/parse.c:6121
0x7012a0 gfc_parse_file()
../../gcc/fortran/parse.c:6324
0x74809f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204