re PR c++/32260 (too many warning: dereferencing type-punned pointer will break stric...
authorJakub Jelinek <jakub@redhat.com>
Thu, 1 Nov 2007 22:50:32 +0000 (23:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 1 Nov 2007 22:50:32 +0000 (23:50 +0100)
commit3a44f39543e5c76226975a7897e3e8669b934327
tree7d1eb8d75da2fff336b190393af33c47c0b7dfbe
parent945bfaca2e8a22850091765d667dc24e356ba420
re PR c++/32260 (too many warning: dereferencing type-punned pointer will break strict-aliasing rules)

PR c++/32260
* rtti.c (enum_tinfo_kind): Fix TK_TYPE_INFO_TYPE comment.
(typeid_ok_p): Use the same alias set for abi::__type_info_pseudo
as for std::type_info.

* g++.dg/rtti/typeid7.C: New test.

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