2016-12-07 Martin Jambor <mjambor@suse.cz>
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
+2016-12-07 Martin Jambor <mjambor@suse.cz>
+
+ 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 <nathan@acm.org>
* pt.c (tsubst <{NON,}TYPE_ARGUMENT_PACK>: Simplify control flow
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_("<built-in>"));
+ dump_function_name (pp, t, flags);
}
else if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t))
dump_global_iord (pp, t);