This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84733] [8 Regression] internal compiler error: Segmentation fault (check_local_shadow())
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Apr 2018 15:24:56 +0000
- Subject: [Bug c++/84733] [8 Regression] internal compiler error: Segmentation fault (check_local_shadow())
- Auto-submitted: auto-generated
- References: <bug-84733-4@http.gcc.gnu.org/bugzilla/>
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;
}