This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++: Tag transparent binding contour


On Thu, 2003-09-18 at 19:07, Gabriel Dos Reis wrote:
> 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. 

The right thing to do would be to get rid of these fake post-label
binding levels.  The binding level structures should mirror the scopes
required by the language, and there is no new scope required after a
label.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]