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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Sep 22 18:55:21 2017
New Revision: 253106

URL: https://gcc.gnu.org/viewcvs?rev=253106&root=gcc&view=rev
Log:
        PR sanitizer/81929
        * tree.c (struct replace_placeholders_t): Add pset field.
        (replace_placeholders_r): Call cp_walk_tree with d->pset as
        last argument instead of NULL.  Formatting fix.
        (replace_placeholders): Add pset variable, add its address
        into data.  Pass &pset instead of NULL to cp_walk_tree.

        * g++.dg/ubsan/pr81929.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/pr81929.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to