https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115879
--- Comment #4 from Zdenek Sojka <zsojka at seznam dot cz> --- Created attachment 59374 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59374&action=edit testcase using memset $ x86_64-pc-linux-gnu-gcc -O -finstrument-functions -fnon-call-exceptions testcase2.c testcase2.c: In function 'foo': testcase2.c:8:14: warning: '__builtin_memset' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 8 | d /= *(D *)__builtin_memset((char *)&d - 1, i, 8); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ testcase2.c:3:3: note: at offset -1 into destination object 'd' of size 32 3 | D d; | ^ testcase2.c:9:1: error: missing REG_EH_REGION note at the end of bb 6 9 | } | ^ during RTL pass: subreg3 testcase2.c:9:1: internal compiler error: verify_flow_info failed 0x2c8a99e internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0x103f99e verify_flow_info() /repo/gcc-trunk/gcc/cfghooks.cc:287 0x14853f7 execute_function_todo /repo/gcc-trunk/gcc/passes.cc:2113 0x148594e execute_todo /repo/gcc-trunk/gcc/passes.cc:2155 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.