This is the mail archive of the
mailing list for the GCC project.
Re: C++ PATCH: PR c++/14138
- From: Mike Stump <mrs at apple dot com>
- To: mark at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 1 Mar 2004 15:43:11 -0800
- Subject: Re: C++ PATCH: PR c++/14138
On Sunday, February 29, 2004, at 10:27 PM, Mark Mitchell wrote:
! pop_p = push_scope (nested_name_specifier);
/* Get the canonical version of this type. */
type = TYPE_MAIN_DECL (TREE_TYPE (type));
if (PROCESSING_REAL_TEMPLATE_DECL_P ()
&& !CLASSTYPE_TEMPLATE_SPECIALIZATION (TREE_TYPE (type)))
type = push_template_decl (type);
type = TREE_TYPE (type);
*nested_name_specifier_p = true;
! if (pop_p)
! pop_scope (nested_name_specifier);
Why not have push_scope remember the state behind the interface and
have pop_scope do nothing if that saved state indicates it was a `fast'
push? Advantages seem to be all the client code stays the same, the
interface remains the same, conceptually it remains simpler...