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] Fix PR13262 regression (static member init accesschecking)


On Tue, 16 Dec 2003 22:13:52 +0700, Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> wrote:

> Jason Merrill wrote:
>
>>Why not use the same logic as start_decl, and only push if the type is
>>complete?

> Because instantiate_decl calls push_to_top_level somewhere earlier
> to reset the current scope, so calling push_nested_class here will set the
> scope to something cp_finish_decl expected.  So that the processing inside
> cp_finish_decl is correct.

OK.

> (In my opinion, these chunks in start_decl/cp_finish_decl should be in
> the parser and perform push/pop when the name declared is a qualified
> name.)

Makes sense to me.

Jason


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