decl.c (push_class_binding): Use context_for_name_lookup instead of CP_DECL_CONTEXT.
authorJakub Jelinek <jakub@redhat.com>
Sat, 3 Feb 2001 00:27:28 +0000 (01:27 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 3 Feb 2001 00:27:28 +0000 (01:27 +0100)
commit55de1b6662d54cde8f407bd4d1f3e10de3a6fa9f
treef3d31f5162151f6fcae8bb32cda44e06be229762
parent2bf9b27db7a7f87373a7a702e6741bdaf820ddbd
decl.c (push_class_binding): Use context_for_name_lookup instead of CP_DECL_CONTEXT.

* decl.c (push_class_binding): Use context_for_name_lookup instead
of CP_DECL_CONTEXT.
* search.c (context_for_name_lookup): Remove static.  Check for NULL
context in the loop.
* cp-tree.h (context_for_name_lookup): Add prototype.

* g++.old-deja/g++.other/anon6.C: New test.
* g++.old-deja/g++.other/anon7.C: New test.

From-SVN: r39417
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/search.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/anon6.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/anon7.C [new file with mode: 0644]