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

            Bug ID: 124597
           Summary: [16 Regression] ICE in verify_flow_info: BB 5 cannot
                    throw but has an EH edge during GIMPLE pass: forwprop
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: defsyn at gmail dot com
  Target Milestone: ---

Created attachment 63988
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63988&action=edit
Preprocessed C++ source (x86_64-w64-mingw32-gcc -save-temps) reproducing ICE in
verify_flow_info during forwprop at -O2. Targets UCRT with win32 threads.

Used the latest git pull of the gcc source tree from yesterday.

While compiling Wine (libs/c++/src/support/win32/locale_win32.cpp) with
x86_64-w64-mingw32-gcc 16.0.1 (UCRT, win32 threads), I encounter an ICE.

The error occurs at -O2. The optimizer appears to simplify a block in
snprintf_l but leaves a dangling EH edge.

Error:
locale_win32.cpp:90:5: error: BB 5 cannot throw but has an EH edge
during GIMPLE pass: forwprop
internal compiler error: verify_flow_info failed

Reply via email to