Deleted Added
sdiff udiff text old ( 169690 ) new ( 220150 )
full compact
1/* Definitions for C++ name lookup routines.
2 Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
3 Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by

--- 2910 unchanged lines hidden (view full) ---

2919 if (at_namespace_scope_p ())
2920 error ("explicit qualification in declaration of %qD",
2921 decl);
2922 return;
2923 }
2924
2925 /* See whether this has been declared in the namespace. */
2926 old = lookup_qualified_name (scope, DECL_NAME (decl), false, true);
2927 if (!old)
2928 /* No old declaration at all. */
2929 goto complain;
2930 if (!is_overloaded_fn (decl))
2931 /* Don't compare non-function decls with decls_match here, since
2932 it can't check for the correct constness at this
2933 point. pushdecl will find those errors later. */
2934 return;
2935 /* Since decl is a function, old should contain a function decl. */

--- 1055 unchanged lines hidden (view full) ---

3991 else if ((flags & LOOKUP_PREFER_TYPES)
3992 && qualify_lookup (iter->type, flags))
3993 binding = iter->type;
3994 else
3995 binding = NULL_TREE;
3996
3997 if (binding)
3998 {
3999 /* Only namespace-scope bindings can be hidden. */
4000 gcc_assert (!hidden_name_p (binding));
4001 val = binding;
4002 break;
4003 }
4004 }
4005
4006 /* Now lookup in namespace scopes. */
4007 if (!val)
4008 val = unqualified_namespace_lookup (name, flags);

--- 1147 unchanged lines hidden ---