https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65527
Bug ID: 65527 Summary: ICE: in expand_builtin_with_bounds, at builtins.c:7120 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 35117 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35117&action=edit reduced testcase Compiler output: $ gcc -Os -fcheck-pointer-bounds -mmpx testcase.c testcase.c: In function 'foo.chkp': testcase.c:7:3: internal compiler error: in expand_builtin_with_bounds, at builtins.c:7120 f (&i); ^ 0x7cf7e0 expand_builtin_with_bounds(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /mnt/svn/gcc-trunk/gcc/builtins.c:7119 0x904b27 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /mnt/svn/gcc-trunk/gcc/expr.c:10487 0x7ff238 expand_expr /mnt/svn/gcc-trunk/gcc/expr.h:254 0x7ff238 expand_call_stmt /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2399 0x7ff238 expand_gimple_stmt_1 /mnt/svn/gcc-trunk/gcc/cfgexpand.c:3343 0x7ff238 expand_gimple_stmt /mnt/svn/gcc-trunk/gcc/cfgexpand.c:3497 0x803cb4 expand_gimple_basic_block /mnt/svn/gcc-trunk/gcc/cfgexpand.c:5509 0x8067a6 execute /mnt/svn/gcc-trunk/gcc/cfgexpand.c:6127 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: r221530 - ICE