* name-lookup.c (print_binding_level): Print this_entity.
authorJason Merrill <jason@redhat.com>
Fri, 1 Mar 2019 00:07:29 +0000 (19:07 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Mar 2019 00:07:29 +0000 (19:07 -0500)
From-SVN: r269291

gcc/cp/ChangeLog
gcc/cp/name-lookup.c

index 8ad0f221efc0293c3bf6dff6d6dc3d34fdd9227f..3124aa9e02f63a39949c86555c63d7224934c75b 100644 (file)
@@ -1,3 +1,7 @@
+2019-02-28  Jason Merrill  <jason@redhat.com>
+
+       * name-lookup.c (print_binding_level): Print this_entity.
+
 2019-02-27  Marek Polacek  <polacek@redhat.com>
 
        PR c++/88857 - ICE with value-initialization of argument in template.
index 2e1b851341b23d568d2ef433120c7efbba417d71..1ddcde26ef487d5c9852d1579e2c0b6dfcb3f698 100644 (file)
@@ -3589,6 +3589,8 @@ print_binding_level (cp_binding_level* lvl)
 {
   tree t;
   int i = 0, len;
+  if (lvl->this_entity)
+    print_node_brief (stderr, "entity=", lvl->this_entity, 1);
   fprintf (stderr, " blocks=%p", (void *) lvl->blocks);
   if (lvl->more_cleanups_ok)
     fprintf (stderr, " more-cleanups-ok");