https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65523
Bug ID: 65523 Summary: ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 35107 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35107&action=edit reduced testcase (gcc.dg/torture/pr55890-3.c) Compiler output: $ gcc -fcheck-pointer-bounds -mmpx testcase.c testcase.c: In function 'bar.chkp': testcase.c:7:1: internal compiler error: in gimple_op, at gimple.h:2270 } ^ 0x59ec53 gimple_op /mnt/svn/gcc-trunk/gcc/gimple.h:2270 0xcfb51f gimple_op /mnt/svn/gcc-trunk/gcc/gimple.h:2257 0xcfb51f gimple_call_arg /mnt/svn/gcc-trunk/gcc/gimple.h:2855 0xd012cf chkp_build_returned_bound /mnt/svn/gcc-trunk/gcc/tree-chkp.c:2195 0xd012cf chkp_get_bounds_by_definition /mnt/svn/gcc-trunk/gcc/tree-chkp.c:2728 0xd012cf chkp_find_bounds_1 /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3475 0xd04862 chkp_find_bounds /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3555 0xd04862 chkp_add_bounds_to_ret_stmt /mnt/svn/gcc-trunk/gcc/tree-chkp.c:1232 0xd04862 chkp_instrument_function /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4133 0xd04862 chkp_execute /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4323 0xd04862 execute /mnt/svn/gcc-trunk/gcc/tree-chkp.c:4380 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. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-221530-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-221530-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 5.0.0 20150320 (experimental) (GCC) Tested revisions: r221539 - ICE