https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64717
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jan 29 20:40:07 2015 New Revision: 220262 URL: https://gcc.gnu.org/viewcvs?rev=220262&root=gcc&view=rev Log: PR c++/64717 * cp-ubsan.c (cp_ubsan_instrument_vptr): Don't wrap vptr into SAVE_EXPR. * g++.dg/ubsan/pr64717-1.C: New test. * g++.dg/ubsan/pr64717-2.C: New test. Added: trunk/gcc/testsuite/g++.dg/ubsan/pr64717-1.C trunk/gcc/testsuite/g++.dg/ubsan/pr64717-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-ubsan.c trunk/gcc/testsuite/ChangeLog