This is the mail archive of the
mailing list for the GCC project.
[C++ PATCH] Fix friend class name lookup part 4/n
- From: Kriang Lerdsuwanakij <lerdsuwa at users dot sourceforge dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 18 Nov 2004 23:59:39 +0700
- Subject: [C++ PATCH] Fix friend class name lookup part 4/n
This patch removes codes related to tag name lookup that are no longer used.
The CLASSTYPE_NESTED_UTDS of a RECORD_TYPE is also decoupled from type_decls
field in struct cp_binding_level which is also removed.
Now binding_table infrastructure is only used for CLASSTYPE_NESTED_UTDS but I
decide to keep the unused functions 'binding_entry_free' and 'binding_table_free'
around because they do name lookup based on hash which could be useful in
other area. Those two functions are enclosed within #if 0/#endif block.
Patch tested on i686-pc-linux-gnu. OK for mainline?