re PR sanitizer/81929 (exponential slowdown in undefined behavior sanitizer for strea...
authorJakub Jelinek <jakub@redhat.com>
Fri, 22 Sep 2017 18:55:21 +0000 (20:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Sep 2017 18:55:21 +0000 (20:55 +0200)
commit2dc589be3cb487eda8f537c535cab0f5a9a4a6a1
treee20eb730d1aa94bba5c78eaacfb5b7e5fd413900
parentc90df0d293367452d193f04a18c2233d64a10d1a
re PR sanitizer/81929 (exponential slowdown in undefined behavior sanitizer for streaming)

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.

From-SVN: r253106
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr81929.C [new file with mode: 0644]