Use flags in dump_decl.
authorMartin Liska <mliska@suse.cz>
Wed, 21 Apr 2021 11:27:08 +0000 (13:27 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 21 Apr 2021 11:27:08 +0000 (13:27 +0200)
gcc/cp/ChangeLog:

* error.c (dump_decl): Use flags in dump_generic_node call.

gcc/cp/error.c

index c88d174..c4ae76f 100644 (file)
@@ -1365,7 +1365,7 @@ dump_decl (cxx_pretty_printer *pp, tree t, int flags)
       if (DECL_NAME (t))
        pp_cxx_tree_identifier (pp, DECL_NAME (t));
       else
-       dump_generic_node (pp, t, 0, TDF_SLIM, false);
+       dump_generic_node (pp, t, 0, flags | TDF_SLIM, false);
       break;
 
     case CONST_DECL: