From fbfef5060f5dd9ae2b23435f60e3101dfe8f7012 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 28 Feb 2019 19:07:29 -0500 Subject: [PATCH] * name-lookup.c (print_binding_level): Print this_entity. From-SVN: r269291 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/name-lookup.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8ad0f221efc..3124aa9e02f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2019-02-28 Jason Merrill + + * name-lookup.c (print_binding_level): Print this_entity. + 2019-02-27 Marek Polacek PR c++/88857 - ICE with value-initialization of argument in template. diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 2e1b851341b..1ddcde26ef4 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -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"); -- 2.30.2