re PR c++/49440 (Invalid dynamic_cast for unnamed namespace)
authorJason Merrill <jason@redhat.com>
Thu, 23 Jun 2011 16:52:48 +0000 (12:52 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 23 Jun 2011 16:52:48 +0000 (12:52 -0400)
commit012d5d2526e73eb98190fdabfd86e075ed5c7d50
treefeb1e76edef896378861b84fbcf2443b81a3873a
parentece620047b5ef8033e0c066c73c857a4d820d507
re PR c++/49440 (Invalid dynamic_cast for unnamed namespace)

PR c++/49440
* class.c (set_linkage_according_to_type): Just check TREE_PUBLIC
on the type's name.

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