https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87154
Bug ID: 87154 Summary: Internal compiler error: in gimplify_expr, at gimplify.c:12215 Product: gcc Version: 7.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: uberprugelknabe at hotmail dot com Target Milestone: --- Created attachment 44629 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44629&action=edit This file triggers the crash When compiling the attached source file (originally from a large project, reduced to just the lines causing the crash) an ICE is triggered. Confirmed in both gcc 7.3.1 and 7.3.0. Example compiles correctly in Intel fortran and PGI fortran. A slightly modified source file also attached using an explicit pointer instead of an ASSICATE compiles without errors. Stack trace: gfortran -c crash.f90 crash.f90:31:0: args = str_split(param,',') internal compiler error: in gimplify_expr, at gimplify.c:12215 0x87241e gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:12215 0x8789e9 gimplify_modify_expr ../../gcc/gimplify.c:5488 0x871489 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:11248 0x873b08 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6505 0x871d2b gimplify_statement_list ../../gcc/gimplify.c:1715 0x871d2b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:11676 0x873b08 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6505 0x874448 gimplify_bind_expr ../../gcc/gimplify.c:1288 0x8720aa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:11448 0x873b08 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6505 0x871d2b gimplify_statement_list ../../gcc/gimplify.c:1715 0x871d2b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:11676 0x873b08 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6505 0x874448 gimplify_bind_expr ../../gcc/gimplify.c:1288 0x8720aa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:11448 0x873b08 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6505 0x871d2b gimplify_statement_list ../../gcc/gimplify.c:1715 0x871d2b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gimplify.c:11676 0x873b08 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:6505 0x874448 gimplify_bind_expr ../../gcc/gimplify.c:1288 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.