re PR c++/82373 (syntax error in error message)
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Oct 2017 16:15:36 +0000 (18:15 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Oct 2017 16:15:36 +0000 (18:15 +0200)
commit420db57431715a5aed988c5ba600c913dc779f0e
treec42d6fb48f73337d2ac55e1a6950c2f94ed3971f
parent4e91452412294f3cc1c63de8c35e88d2c08fe6ee
re PR c++/82373 (syntax error in error message)

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.

From-SVN: r253418
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr82373.C [new file with mode: 0644]