[Bug fortran/82972] New: ICE with -finit-derived in gfc_conv_structure, at fortran/trans-expr.c:7733 (and others)
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Nov 13 21:06:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82972
Bug ID: 82972
Summary: ICE with -finit-derived in gfc_conv_structure, at
fortran/trans-expr.c:7733 (and others)
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
There are a few issues with -finit-derived, probably a consequence
of pr82886. Please feel free to open separate PRs if it fits better.
gcc configured with --enable-checking=yes.
Files from catalog ./gcc/testsuite/gfortran.dg :
c_ptr_tests_14.f90
c_ptr_tests_15.f90
pr32627.f03
pr35983.f90
lto/bind_c-1_0.f90
$ gfortran-8-20171105 -finit-derived -c c_ptr_tests_14.f90
$ gfortran-8-20171112 -finit-derived -c c_ptr_tests_14.f90
c_ptr_tests_14.f90:25:0:
program test
internal compiler error: Segmentation fault
0xcaca2f crash_signal
../../gcc/toplev.c:325
0x7a88f6 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
../../gcc/tree.h:3201
0x7a88f6 gfc_conv_structure(gfc_se*, gfc_expr*, int)
../../gcc/fortran/trans-expr.c:7733
0x7a82b1 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
../../gcc/fortran/trans-expr.c:6867
0x7a8921 gfc_conv_structure(gfc_se*, gfc_expr*, int)
../../gcc/fortran/trans-expr.c:7735
0x7a82b1 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
../../gcc/fortran/trans-expr.c:6867
0x78c5fc gfc_get_symbol_decl(gfc_symbol*)
../../gcc/fortran/trans-decl.c:1819
0x790327 generate_local_decl
../../gcc/fortran/trans-decl.c:5492
0x74802b do_traverse_symtree
../../gcc/fortran/symbol.c:4157
0x7910f2 generate_local_vars
../../gcc/fortran/trans-decl.c:5692
0x7910f2 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6356
0x715dc0 translate_all_program_units
../../gcc/fortran/parse.c:6091
0x715dc0 gfc_parse_file()
../../gcc/fortran/parse.c:6294
0x75b20f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204
More information about the Gcc-bugs
mailing list