https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82373
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Oct 27 20:34:22 2017 New Revision: 254180 URL: https://gcc.gnu.org/viewcvs?rev=254180&root=gcc&view=rev Log: Backported from mainline 2017-10-04 Jakub Jelinek <ja...@redhat.com> PR c++/82373 * error.c (dump_function_decl): If show_return, call dump_type_suffix on the same return type dump_type_prefix has been called on. * g++.dg/cpp1y/pr82373.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/pr82373.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/error.c branches/gcc-7-branch/gcc/testsuite/ChangeLog