name-lookup.c (ambiguous_decl): Adds check for hidden types.
authorOllie Wild <aaw@google.com>
Tue, 22 May 2007 21:05:01 +0000 (21:05 +0000)
committerOllie Wild <aaw@gcc.gnu.org>
Tue, 22 May 2007 21:05:01 +0000 (21:05 +0000)
commit8e89cbfe6cfa70ebe7978bf635111dc307b19f56
treef6b49ec02c025097ff133b034f790ab8364dfef5
parent6b12f000e0879e171ce0a7677291a9417d014221
name-lookup.c (ambiguous_decl): Adds check for hidden types.

* name-lookup.c (ambiguous_decl): Adds check for hidden types.
(unqualified_namespace_lookup): Adds check for hidden types.

* g++.dg/lookup/hidden-class10.C: New test.
* g++.dg/lookup/hidden-class11.C: New test.

From-SVN: r124963
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/hidden-class10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/hidden-class11.C [new file with mode: 0644]