C++: Tag transparent binding contour
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri Sep 19 07:25:00 GMT 2003
Jason Merrill <jason@redhat.com> writes:
| On 03 Jun 2003 19:06:15 +0200, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
|
| > 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),
|
| Well, it isn't a block. It's transparent to all names. If you're working
| to distinguish different types of binding levels, this seems worth
| distinguishing. If you give these a different scope_kind, you could check
| that and do away with the magic handling of keep==2.
Jason,
I'm still having a slight trouble with keep. Currently the
documentation says:
/* 1 means make a BLOCK for this level regardless of all else.
2 for temporary binding contours created by the compiler. */
unsigned keep : 2;
Is it the case that keep == 2 only for scopes created for EH purpose?
With sk_cleanup, I would like to ditch keep altogether.
-- Gaby
More information about the Gcc
mailing list