]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/name-lookup.c
name-lookup.c (current_decl_namespace): Non-static.
authorJason Merrill <jason@redhat.com>
Wed, 7 Apr 2010 15:55:02 +0000 (11:55 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 7 Apr 2010 15:55:02 +0000 (11:55 -0400)
commitae099258d3654e328fca96e0ebd457487a70a685
tree5d11af1d0803ae77593c8e8e5b7621b20166dee5
parentfeb3b88ad7ea6de3d0f63b41226f0b90c36a0c07
name-lookup.c (current_decl_namespace): Non-static.

* name-lookup.c (current_decl_namespace): Non-static.
(pop_nested_namespace): Sanity check.
* cp-tree.h: Declare current_decl_namespace.
* decl.c (grokvardecl): Use it instead of current_namespace.
(grokfndecl): Likewise.
* gnu/gcj/runtime/natSharedLibLoader.cc (findCore): Move
declaration of _Jv_create_core out of the function.

From-SVN: r158074
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/ns4.C [new file with mode: 0644]
libjava/ChangeLog
libjava/gnu/gcj/runtime/natSharedLibLoader.cc