https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68146
Bug ID: 68146 Summary: ice in gimple_stmt_nonnegative_warnv_p with -O2 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 36613 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36613&action=edit FORTRAN source code The attached FORTRAN code, when compiled with -c -O2 on x86_64, does this internal compiler error: Segmentation fault 0xc4d67f crash_signal ../../src/trunk/gcc/toplev.c:353 0x991e56 gimple_stmt_nonnegative_warnv_p(gimple*, bool*, int) ../../src/trunk/gcc/gimple-fold.c:6266 0x991f21 gimple_phi_nonnegative_warnv_p ../../src/trunk/gcc/gimple-fold.c:6251 0x991f21 gimple_stmt_nonnegative_warnv_p(gimple*, bool*, int) ../../src/trunk/gcc/gimple-fold.c:6276 0x92d9f5 tree_expr_nonnegative_p(tree_node*) ../../src/trunk/gcc/fold-const.c:13164 gimple-fold.c:6266 is switch (gimple_code (stmt))