]> gcc.gnu.org Git - gcc.git/commit
name-lookup.c (ambiguous_decl): Fix case when new->value is hidden.
authorOllie Wild <aaw@google.com>
Sun, 1 Jul 2007 20:49:29 +0000 (20:49 +0000)
committerOllie Wild <aaw@gcc.gnu.org>
Sun, 1 Jul 2007 20:49:29 +0000 (20:49 +0000)
commitaf92ab368ad709fcd26b360dc1cf4e50b0cd6185
tree3d4fa643b8d41d6d480c77eb01d90ee5dc80d4ae
parent31c97dfe34220de54c1d93ce858af83bfda31fd3
name-lookup.c (ambiguous_decl): Fix case when new->value is hidden.

* name-lookup.c (ambiguous_decl): Fix case when new->value is hidden.
(select_decl): Remove function.
(unqualified_namespace_lookup): Populate binding by calling
ambiguous_decl.  Remove select_decl call.
(lookup_qualified_name): Remove select_decl call.
* decl.c (lookup_and_check_tag): Check for ambiguous references.
* parser.c (cp_parser_elaborated_type_specifier): Skip redundant error
generation when name lookup is ambiguous.

* g++.dg/lookup/using16.C: New test.
* g++.dg/lookup/using17.C: New test.

From-SVN: r126177
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/using16.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/using17.C [new file with mode: 0644]
This page took 0.057842 seconds and 5 git commands to generate.