This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/84733] [8 Regression] internal compiler error: Segmentation fault (check_local_shadow())


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;
     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]