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: PR c++/14138


Mike Stump wrote:

On Monday, March 1, 2004, at 04:01 PM, Mark Mitchell wrote:

All excellent points. But, there's no obvious data structure in which to record that information. Once we tidy up all the scope handling / symbol table goo in the front end, this would be possible and very desirable.


static GTY(()) varray_type real_scope;
void
push_scope () {
    VARRAY_PUSH_CHAR (real_scope, push_scope_old ());
}

void
pop_scope () {
    if (VARRAY_TOP_CHAR (real_scope))
        pop_scope_old ();
    VARRAY_POP (real_scope);
}

?

I didn't mean to say that one couldn't create such a data structure, but rather than it didn't already exist.


If you feel strongly about it, submit a patch!

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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