re PR c++/25466 (typeid expression fails to throw bad_typeid according to 5.2.8p2)
authorJason Merrill <jason@redhat.com>
Tue, 9 Apr 2013 18:11:38 +0000 (14:11 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Apr 2013 18:11:38 +0000 (14:11 -0400)
commitc87e82a6432688f64b6712e69f93a56524652732
tree6e25f8fc1a042063f7c9aed3ca74aeadc7a7df52
parent5017f1d2d31655ef19032f7c143bae64c8ae0142
re PR c++/25466 (typeid expression fails to throw bad_typeid according to 5.2.8p2)

PR c++/25466
* rtti.c (build_typeid): Check the address of the argument
rather than looking for an INDIRECT_REF.

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