https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83975

--- Comment #1 from G. Steinmetz <gs...@t-online.de> ---

Configured with --enable-checking=yes :

$ gfortran-8-20180121-chk -c z1.f90
z1.f90:1:0:

 subroutine s(x)

internal compiler error: tree check: expected parm_decl, have var_decl in
assign_parm_find_data_types, at function.c:2456
0x61e2e1 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.c:9337
0x9e9224 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3132
0x9e9224 assign_parm_find_data_types
        ../../gcc/function.c:2456
0x9ef55b gimplify_parameters(gimple**)
        ../../gcc/function.c:4014
0xa5eccc gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:12631
0xa5f084 gimplify_function_tree(tree_node*)
        ../../gcc/gimplify.c:12800
0x8aed87 cgraph_node::analyze()
        ../../gcc/cgraphunit.c:670
0x8b2483 analyze_functions
        ../../gcc/cgraphunit.c:1131
0x8b2f92 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2691

Reply via email to