[Bug sanitizer/88901] ICE when using -fsanitize=pointer-compare

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 7 14:34:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88901

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb  7 14:33:51 2019
New Revision: 268624

URL: https://gcc.gnu.org/viewcvs?rev=268624&root=gcc&view=rev
Log:
        Backported from mainline
        2019-01-21  Jakub Jelinek  <jakub@redhat.com>

        PR sanitizer/88901
        * typeck.c (cp_build_binary_op): Don't instrument
        SANITIZE_POINTER_COMPARE if processing_template_decl.
        (pointer_diff): Similarly for SANITIZE_POINTER_SUBTRACT.

        * g++.dg/asan/pr88901.C: New test.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/asan/pr88901.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/typeck.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list