re PR sanitizer/83987 (ICE with OpenMP, sanitizer and virtual bases)
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Feb 2018 23:22:43 +0000 (00:22 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Feb 2018 23:22:43 +0000 (00:22 +0100)
commit6724f8a61d49dfdfaa11995765b85ee170e48ac7
tree1bcb77e081a3462478d62cb53e68a5a3c07df260
parent5ca8e744641e1b03cc6e4cdbc46e7ece0750240d
re PR sanitizer/83987 (ICE with OpenMP, sanitizer and virtual bases)

PR sanitizer/83987
* omp-low.c (maybe_remove_omp_member_access_dummy_vars,
remove_member_access_dummy_vars): New functions.
(lower_omp_for, lower_omp_taskreg, lower_omp_target,
lower_omp_1, execute_lower_omp): Use them.

* tree.c (cp_free_lang_data): Revert 2018-01-23 change.

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

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