This is the mail archive of the gcc-patches@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++ PATCH] Remove nested function support remnants


On Mon, 2003-09-15 at 10:02, Steven Bosscher wrote:
> Op ma 15-09-2003, om 17:40 schreef Mark Mitchell:
> > > I would say that it is a leftover of the era when cc1plus started as
> > > copy-n-paste of cc1.  Moreover, C++ provides clean and  standard ways
> > > to implement inline nested-functions in terms of local classes. 
> > > I would suggest to get rid of that piece of code.
> > 
> > Yes, this is probably dead code.
> 
> Very well. This patch removes it all.
> 
> Bootstrapped and regtested on i686-pc-linux-gnu.  OK?

I suspect not, actually.  The function_depth stuff is necessary not for
the case of lexical nesting, but for things like a function
instantiating a template and then emitting the template.

I think you should stick with just removing the block you originally
pointed out.

-- 
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]