C++: Tag transparent binding contour
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Jun 3 17:16:00 GMT 2003
Jason Merrill <jason@redhat.com> writes:
| > The only place, in the C++ front-end, where a tag-transparent binding
| > contour is created in maybe_push_cleanup_level, where I think it is
| > unnecessary. Comments?
|
| Well, if we're in the middle of a block and we want to push a new binding
| level in order to support cleanup semantics, we don't want that binding
| level to interfere with name lookup. But I don't see how that would be
| different for tags vs. other names. Indeed, since C++ doesn't have
| separate name spaces for tags and decls, having any special handling of
| tags doesn't make a lot of sense.
Thank you. Is it OK to describe the binding contour created by
maybe_push_cleanup_level as just a bare sk_block? Or do you think it
is necessary to introduce a separate scope_kind enumerator? (I would
say sk_block is sufficient),
-- Gaby
More information about the Gcc
mailing list