https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84733
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paolo.carlini at oracle dot com
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
For the remaining error-recovery issue, loosening a bit the assertion would be
enough - see below - I don't know if we want to dig deeper... Opinions?
Index: name-lookup.c
===================================================================
--- name-lookup.c (revision 259340)
+++ name-lookup.c (working copy)
@@ -2052,7 +2052,7 @@ pop_local_binding (tree id, tree decl)
binding->value = NULL_TREE;
else
{
- gcc_assert (binding->type == decl);
+ gcc_assert (!binding->type || binding->type == decl);
binding->type = NULL_TREE;
}