https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88356
Bug ID: 88356 Summary: [9 Regression] ICE with -Werror in reduce_binary_ac, at fortran/arith.c:1318 (and others) Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- A combination of -Werror with some options like -Wundef, -Wswitch or others gives ICEs. This changed between 20180624 and 20180708. $ cat z1.f90 program p print *, any(abs([1.0]) > epsilon(0.0)) end $ gfortran-8 -c z1.f90 -Werror -Wundef f951: Error: command line option '-Wundef' is valid for C/C++/ObjC/ObjC++ but not for Fortran [-Werror] f951: all warnings being treated as errors $ gfortran-9-20181202 -c z1.f90 -Werror -Wundef f951: Error: command line option '-Wundef' is valid for C/C++/ObjC/ObjC++ but not for Fortran [-Werror] f951: internal compiler error: Segmentation fault 0xb2ec9f crash_signal ../../gcc/toplev.c:326 0x5e915f reduce_binary_ac ../../gcc/fortran/arith.c:1318 0x5e91f2 reduce_binary_ac ../../gcc/fortran/arith.c:1305 0x5e9344 reduce_binary ../../gcc/fortran/arith.c:1431 0x5e967b eval_intrinsic ../../gcc/fortran/arith.c:1606 0x6220f9 simplify_intrinsic_op ../../gcc/fortran/expr.c:1174 0x6220f9 gfc_simplify_expr(gfc_expr*, int) ../../gcc/fortran/expr.c:2142 0x68e353 resolve_operator ../../gcc/fortran/resolve.c:4242 0x68e353 gfc_resolve_expr(gfc_expr*) ../../gcc/fortran/resolve.c:6825 0x69023f resolve_actual_arglist ../../gcc/fortran/resolve.c:1918 0x690a08 resolve_function ../../gcc/fortran/resolve.c:3157 0x68dcad gfc_resolve_expr(gfc_expr*) ../../gcc/fortran/resolve.c:6832 0x685ceb gfc_resolve_code(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:11262 0x6959bf gfc_resolve_blocks(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:10302 0x685e79 gfc_resolve_code(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:11252 0x688b0f resolve_codes ../../gcc/fortran/resolve.c:16704 0x688bde gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:16739 0x676967 resolve_all_program_units ../../gcc/fortran/parse.c:6067 0x676967 gfc_parse_file() ../../gcc/fortran/parse.c:6317 0x6bf5ff gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204