re PR sanitizer/83987 (ICE with OpenMP, sanitizer and virtual bases)
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 23 Jan 2018 20:36:34 +0000 (21:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 23 Jan 2018 20:36:34 +0000 (21:36 +0100)
commit508d0c3da24c91bdabf7fbd453b511bfccbb2958
tree783ff70265bd9ba0f304d4c634b318e3605f7b2d
parent56dbd05b0ed265ec37f66234487aaad6e330c7ce
re PR sanitizer/83987 (ICE with OpenMP, sanitizer and virtual bases)

PR sanitizer/83987
* tree.c (cp_free_lang_data): Change DECL_VALUE_EXPR of
DECL_OMP_PRIVATIZED_MEMBER vars to error_mark_node.

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

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