https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79089
Bug ID: 79089 Summary: error: incorrect sharing of tree nodes 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 40519 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40519&action=edit C source code The attached code, when compiled by today's gcc trunk does this: $ ../results/bin/gcc -c -w bug329.c ../../../proto/bgp/attrs.c: In function ‘bgp_free_prefix_table’: ../../../proto/bgp/attrs.c:938:1: error: incorrect sharing of tree nodes p->prefix_hash D.5411 = p->prefix_hash; ../../../proto/bgp/attrs.c:938:1: internal compiler error: verify_gimple failed 0xcd74b1 verify_gimple_in_cfg(function*, bool) ../../trunk/gcc/tree-cfg.c:5266 0xb812cb execute_function_todo ../../trunk/gcc/passes.c:1965 0xb82528 do_per_function ../../trunk/gcc/passes.c:1649 0xb82528 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. $ I've also tracked down a range of revisions which bracket the culprit revision: $ ../results.241433/bin/gcc -c -w bug329.c $ ../results.242353/bin/gcc -c -w bug329.c ../../../proto/bgp/attrs.c: In function ‘bgp_free_prefix_table’: ../../../proto/bgp/attrs.c:938:1: error: incorrect sharing of tree nodes p->prefix_hash D.5411 = p->prefix_hash; ../../../proto/bgp/attrs.c:938:1: internal compiler error: verify_gimple failed 0xc6aa09 verify_gimple_in_cfg(function*, bool) ../../trunk/gcc/tree-cfg.c:5208 0xb1735b execute_function_todo ../../trunk/gcc/passes.c:1965 0xb18578 do_per_function ../../trunk/gcc/passes.c:1649 0xb18578 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. $