From: Martin Jambor Date: Wed, 7 Dec 2016 13:09:07 +0000 (+0100) Subject: Use dump_function_name rather than emit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=716c5aced1f3e998df4a5d78eba4e090a332acee;p=gcc.git Use dump_function_name rather than emit 2016-12-07 Martin Jambor PR c++/78589 * error.c (dump_decl): Use dump_function_name to dump !DECL_LANG_SPECIFIC function decls with no or self-referencing abstract origin. From-SVN: r243344 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c666f168965..a59d25b7caa 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2016-12-07 Martin Jambor + + PR c++/78589 + * error.c (dump_decl): Use dump_function_name to dump + !DECL_LANG_SPECIFIC function decls with no or self-referencing + abstract origin. + 2016-12-07 Nathan Sidwell * pt.c (tsubst <{NON,}TYPE_ARGUMENT_PACK>: Simplify control flow diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 7bf07c34162..5f8fb2a1838 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1216,10 +1216,11 @@ dump_decl (cxx_pretty_printer *pp, tree t, int flags) case FUNCTION_DECL: if (! DECL_LANG_SPECIFIC (t)) { - if (DECL_ABSTRACT_ORIGIN (t)) + if (DECL_ABSTRACT_ORIGIN (t) + && DECL_ABSTRACT_ORIGIN (t) != t) dump_decl (pp, DECL_ABSTRACT_ORIGIN (t), flags); else - pp_string (pp, M_("")); + dump_function_name (pp, t, flags); } else if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t)) dump_global_iord (pp, t);