https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106551
Tim Lange <tlange at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tlange at gcc dot gnu.org --- Comment #4 from Tim Lange <tlange at gcc dot gnu.org> --- Hi Immad, while testing my patch on coreutils [1], I encountered another ICE at the same line. I'm using the newest commit on the master at the time of writing this [2] (I've double-checked that I indeed have your fix included). during IPA pass: analyzer ../lib/freopen.c: In function 'rpl_freopen': ../lib/freopen.c:82:19: internal compiler error: in valid_to_unchecked_state, at analyzer/sm-fd.cc:751 82 | if (dup2 (nullfd, fd) < 0) | ^~~~~~~~~~~~~~~~~ 0x7bc106 valid_to_unchecked_state ../../gcc/analyzer/sm-fd.cc:751 0x7bc106 valid_to_unchecked_state ../../gcc/analyzer/sm-fd.cc:742 0x7bc106 check_for_dup ../../gcc/analyzer/sm-fd.cc:990 0x12a5e8c on_stmt ../../gcc/analyzer/sm-fd.cc:805 0x124f4e4 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode const*, gimple const*, ana::program_state*, ana::uncertainty_t*, ana::path_context*) ../../gcc/analyzer/engine.cc:1449 0x1251f1b ana::exploded_graph::process_node(ana::exploded_node*) ../../gcc/analyzer/engine.cc:3868 0x1252dba ana::exploded_graph::process_worklist() ../../gcc/analyzer/engine.cc:3271 0x125514d ana::impl_run_checkers(ana::logger*) ../../gcc/analyzer/engine.cc:5912 0x125614e ana::run_checkers() ../../gcc/analyzer/engine.cc:5986 0x1245ee8 execute ../../gcc/analyzer/analyzer-pass.cc:87 [1] compiling coreutils commit: https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=9f71f478ec6929d323c17f0482db8791de87b4fd [2] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=fe4dc4f553d8639b0ce3465e5e6dcf61c1ae9752