aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/name-lookup.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-06-29 20:50:45 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-06-29 20:50:45 -0400
commit4640884658bae7ba9ff09068efcbe4b7e94baf8d (patch)
tree85c05d67287f91a060fe0e69e71f48258e217270 /gcc/cp/name-lookup.c
parent066ec0a4a0c12148352889d7d26a2975960d5571 (diff)
downloadgcc-4640884658bae7ba9ff09068efcbe4b7e94baf8d.zip
gcc-4640884658bae7ba9ff09068efcbe4b7e94baf8d.tar.gz
gcc-4640884658bae7ba9ff09068efcbe4b7e94baf8d.tar.bz2
class.c (type_has_virtual_destructor): New.
* class.c (type_has_virtual_destructor): New. * cp-tree.h: Declare it. * semantics.c (trait_expr_value): Use it. * call.c (build_over_call): Only give warnings with tf_warning. * name-lookup.c (pop_scope): Handle NULL_TREE. From-SVN: r161578
Diffstat (limited to 'gcc/cp/name-lookup.c')
-rw-r--r--gcc/cp/name-lookup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 4e40e3b..6713119 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -2480,6 +2480,8 @@ push_scope (tree t)
void
pop_scope (tree t)
{
+ if (t == NULL_TREE)
+ return;
if (TREE_CODE (t) == NAMESPACE_DECL)
pop_decl_namespace ();
else if CLASS_TYPE_P (t)