Message ID | 20110709012935.B28761C3720@gchare.mtv.corp.google.com |
---|---|
State | New |
Headers | show |
On Fri, Jul 8, 2011 at 21:29, Gabriel Charette <gchare@google.com> wrote: > 2011-07-08 Gabriel Charette <gchare@google.com> > > * gcc/cp/pph-streamer-in.c (pph_add_bindings_to_namespace): > NAMESPACE_LEVEL should never be null for a namespace, removed check. OK. I committed it to the branch. I need to adjust the other two patches you sent as I'm starting to fix something in the same area. Diego.
diff --git a/gcc/cp/pph-streamer-in.c b/gcc/cp/pph-streamer-in.c index d78ee91..55f7e12 100644 --- a/gcc/cp/pph-streamer-in.c +++ b/gcc/cp/pph-streamer-in.c @@ -1168,8 +1168,7 @@ pph_add_bindings_to_namespace (struct cp_binding_level *bl, tree ns) Preserve it. */ chain = DECL_CHAIN (t); pushdecl_into_namespace (t, ns); - if (NAMESPACE_LEVEL (t)) - pph_add_bindings_to_namespace (NAMESPACE_LEVEL (t), t); + pph_add_bindings_to_namespace (NAMESPACE_LEVEL (t), t); } }