re PR c++/12815 (Code compiled with optimization behaves unexpectedly)
authorMark Mitchell <mark@codesourcery.com>
Tue, 6 Jan 2004 00:52:10 +0000 (00:52 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 6 Jan 2004 00:52:10 +0000 (00:52 +0000)
commit962c0823997cba18cca85efec200b19fac8e2c87
treecb82f8866a29849465ec023e201d87c0798f6f2a
parent96f7369ac5bf732d61804b130a633ebd79fbf166
re PR c++/12815 (Code compiled with optimization behaves unexpectedly)

PR c++/12816
* class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
references as constant.

PR c++/12815
* g++.dg/rtti/typeid4.C: New test.

From-SVN: r75457
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/rtti/typeid4.C [new file with mode: 0644]