* decl.c (poplevel): Deal with anonymous variables at for scope.
(maybe_inject_for_scope_var): Likewise.
From-SVN: r35250
+2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
+
+ * decl.c (poplevel): Deal with anonymous variables at for scope.
+ (maybe_inject_for_scope_var): Likewise.
+
2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
* decl.c: Remove all signal handling code, now done in toplev.c.
/* Remove declarations for all the DECLs in this level. */
for (link = decls; link; link = TREE_CHAIN (link))
{
- if (leaving_for_scope && TREE_CODE (link) == VAR_DECL)
+ if (leaving_for_scope && TREE_CODE (link) == VAR_DECL
+ && DECL_NAME (link))
{
tree outer_binding
= TREE_CHAIN (IDENTIFIER_BINDING (DECL_NAME (link)));
maybe_inject_for_scope_var (decl)
tree decl;
{
+ if (!DECL_NAME (decl))
+ return;
+
if (current_binding_level->is_for_scope)
{
struct binding_level *outer