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

            Bug ID: 78051
           Summary: error: dead STMT in EH table when using -O2
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 39850
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39850&action=edit
gzipped C++ source code

The attached code, when compiled by gcc trunk dated 20161020,
and with compiler flag -O2, does this:

$ ../results/bin/gcc -c -O2 bug313.cc
tcpip.cpp: In member function ‘void tcpip::print_packet(const u_char*,
uint32_t)’:
tcpip.cpp:590:42: error: dead STMT in EH table
# .MEM_127 = VDEF <.MEM_118>
fputs (iftmp.85_98, stdout.84_18);
tcpip.cpp:590:42: internal compiler error: verify_gimple failed
0xec75e9 verify_gimple_in_cfg(function*, bool)
        ../../trunk/gcc/tree-cfg.c:5208
0xd74f0b execute_function_todo
        ../../trunk/gcc/passes.c:1965
0xd76138 do_per_function
        ../../trunk/gcc/passes.c:1649
0xd76138 execute_todo
        ../../trunk/gcc/passes.c:2015
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$

Reply via email to