This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++: Why do we nreverse CLASSTYPE_TAGS
Mark Mitchell <mark at codesourcery dot com> writes:
[...]
| Hash tables take up a fair amount of memory; if we make a new hash table
| per type, we'll pay a bit. The other thing to do would be to make one
| hash table for all classes: the key being the pair <class, field_name>.
What do you think about this one: Make every class-type have a
cp_binding_level that is a snapshot of all bindings when we call
poplevel(). That way we won't have to psuh_class_decls() each time
we (re-)enter a class-scope: We just would have to push the class'
cp_binding_level the top of the bindin level stack.
-- Gaby