[Bug fortran/68544] ICE trying to pass derived type constructor as a function
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Nov 21 18:32:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68544
--- Comment #4 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Invalid code with a function :
$ cat z2.f90
program p
type t
end type
print *, f(t)
end
$ gfortran-7-20161120 z2.f90
z2.f90:2:0:
type t
internal compiler error: Segmentation fault
0xc4265f crash_signal
../../gcc/toplev.c:333
0x74c990 gfc_sym_identifier
../../gcc/fortran/trans-decl.c:339
0x74e2e3 build_function_decl
../../gcc/fortran/trans-decl.c:2197
0x75806a gfc_get_symbol_decl(gfc_symbol*)
../../gcc/fortran/trans-decl.c:1622
0x77005f gfc_conv_variable
../../gcc/fortran/trans-expr.c:2494
0x76bcf2 gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:7704
0x773aa6 gfc_conv_expr_reference(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:7804
0x767220 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
../../gcc/fortran/trans-expr.c:5169
0x76bcd2 gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:7696
0x7737d8 gfc_conv_expr_reference(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:7831
0x79a586 gfc_trans_transfer(gfc_code*)
../../gcc/fortran/trans-io.c:2482
0x72c237 trans_code
../../gcc/fortran/trans.c:1902
0x7972e0 build_dt
../../gcc/fortran/trans-io.c:1980
0x72c257 trans_code
../../gcc/fortran/trans.c:1874
0x75c578 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6261
0x6e53e0 translate_all_program_units
../../gcc/fortran/parse.c:6038
0x6e53e0 gfc_parse_file()
../../gcc/fortran/parse.c:6238
0x729052 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:202
More information about the Gcc-bugs
mailing list