https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71458
Bug ID: 71458 Summary: ICE with -fsanitize=bounds Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: barto at cambridgesemantics dot com Target Milestone: --- Created attachment 38663 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38663&action=edit preprocessed file that fails Seen with the released 5.4.0 build for Linux Version: GCC 5.4 System Type: Linux barto-VirtualBox 3.16.0-69-generic #89~14.04.1-Ubuntu SMP Thu Mar 17 20:51:04 UTC 2016 x86_64 GNU/Linux Options when configured ../configure --prefix=/opt/ubuntu-tools-5.4 \ --program-suffix=-5.4.0 \ --disable-multilib \ --with-system-zlib \ --enable-lto \ --enable-tls \ --enable-libmpx \ --enable-languages=c,c++ Command line /home/barto/UnixEnvironment/CSI/asan/toolchain/ubuntu-tools-5.4/bin/g++-5.4.0 -DUSE_GCC54 -c -o /home/barto/UnixEnvironment/CSI/asan/obj/tools/enum_scraper.o -ggdb -DGCC5=1 -DLINUX=1 -DUSE_ADDRESS_SANITIZER -DUSE_SANTYPE_BOUNDS -fsanitize=bounds -fcheck-pointer-bounds -mmpx -fPIE -pie -fno-omit-frame-pointer -fno-optimize-sibling-calls -pipe -march=core2 -m64 -funroll-loops -funit-at-a-time -finline-functions -fweb -frename-registers -funswitch-loops -ftree-vrp -ftree-vectorize -ftree-slp-vectorize -mfpmath=sse -fstack-protector-strong -shared -finline-limit=4000 -DFRAME_SIZE -Werror -Wsign-compare -Wno-long-long -Wreturn-type -Wno-variadic-macros -Wignored-qualifiers -Wparentheses -Wuninitialized -Wno-unused-function -Wall -Wextra -Winvalid-pch -Wsign-promo -Wreorder -Warray-bounds -fdiagnostics-show-option -fno-strict-aliasing -D_BSD_SOURCE -std=gnu++11 -ggdb -UGPROF -I. -DUSE_DLMALLOC -DUSE_STD_MUTEX -D_GLIBCXX_USE_DEPRECATED=0 -DFULL_RESERVATIONS -DMEM_LIMIT_LEAK_CHECKING -UBIG_CLUSTER -UCOMM2A -Wno-type-limits -DUSE_ADDRESS_SANITIZER -DUSE_SANTYPE_BOUNDS -fsanitize=bounds -fcheck-pointer-bounds -mmpx -fPIE -pie -fno-omit-frame-pointer -fno-optimize-sibling-calls -DLINUX -DSYS=B4_2 -I/home/barto/UnixEnvironment/CSI/asan/obj/tools /home/barto/UnixEnvironment/CSI/asan/source/tools/enum_scraper.cpp Output: /home/barto/UnixEnvironment/CSI/asan/source/tools/enum_scraper.cpp:276:1: internal compiler error: Segmentation fault } ^ 0xaa024f crash_signal ../../gcc/toplev.c:383 0xb1df68 chkp_walk_pointer_assignments ../../gcc/tree-chkp.c:3693 0xb1f56f chkp_finish_file() ../../gcc/tree-chkp.c:3803 Preprocessed file: enum_scraper.ii