(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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158074
138bc75d-0d04-0410-961f-
82ee72b054a4
2010-04-07 Jason Merrill <jason@redhat.com>
+ * 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.
+
PR c++/38392
* pt.c (tsubst_friend_function): Instatiate a friend that has already
been used.
extern tree check_for_out_of_scope_variable (tree);
extern void print_other_binding_stack (struct cp_binding_level *);
extern tree maybe_push_decl (tree);
+extern tree current_decl_namespace (void);
/* decl.c */
extern tree poplevel (int, int, int);
2010-04-07 Jason Merrill <jason@redhat.com>
+ * g++.dg/lookup/ns4.C: New.
+
PR c++/38392
* g++.dg/template/friend51.C: New test.
-// PR c++/43145
// { dg-do link }
namespace N {
+2010-04-07 Jason Merrill <jason@redhat.com>
+
+ * gnu/gcj/runtime/natSharedLibLoader.cc (findCore): Move
+ declaration of _Jv_create_core out of the function.
+
2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in: Regenerate.