Backport from mainline:
2003-12-22 Mark Mitchell <mark@codesourcery.com>
PR C++/12862
* decl.c (pushdecl): Look up all namespace-scope entities in
their
corresponding namespace.
From-SVN: r75031
+2003-12-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ Backport from mainline:
+ 2003-12-22 Mark Mitchell <mark@codesourcery.com>
+
+ PR C++/12862
+ * decl.c (pushdecl): Look up all namespace-scope entities in their
+ corresponding namespace.
+
2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/5050
/* In case this decl was explicitly namespace-qualified, look it
up in its namespace context. */
- if (TREE_CODE (x) == VAR_DECL && DECL_NAMESPACE_SCOPE_P (x)
- && namespace_bindings_p ())
+ if (DECL_NAMESPACE_SCOPE_P (x) && namespace_bindings_p ())
t = namespace_binding (name, DECL_CONTEXT (x));
else
t = lookup_name_current_level (name);
namespace A
{
- void
- Thingo();
+ void Thingo();
}
void
A::Thingo()
-{
- ;
-}
+{ }
int
main()