search.c (lookup_field_r): If looking for type and non-TYPE_DECL is found...
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Apr 2001 08:13:59 +0000 (10:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Apr 2001 08:13:59 +0000 (10:13 +0200)
commit881cae050a16f36533d1ba5ceabed73292f1c855
treed57d5f1aacfeb0ad8644c9384777249992ec4aeb
parentd40cd80a97bc42595464cce6b13835a7451c1129
search.c (lookup_field_r): If looking for type and non-TYPE_DECL is found...

* search.c (lookup_field_r): If looking for type and non-TYPE_DECL
is found, look first if name does not match the structure name.

* g++.old-deja/g++.other/lookup23.C: New test.

From-SVN: r41447
gcc/cp/ChangeLog
gcc/cp/search.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/lookup23.C [new file with mode: 0644]