re PR sanitizer/81209 (-fsanitize=undefined ICE on darwin)
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 Jun 2017 07:23:54 +0000 (09:23 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 Jun 2017 07:23:54 +0000 (09:23 +0200)
commitc103185290d8e69b03ab40678093514821615abd
tree8a0bd159bcd64de1dc52529a53b5c46a89b73d70
parent00296d7f68fe3f6ce378fed88eab9999af3a2449
re PR sanitizer/81209 (-fsanitize=undefined ICE on darwin)

PR sanitizer/81209
* ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.

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

From-SVN: r249678
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr81209.C [new file with mode: 0644]
gcc/ubsan.c