[PATCH 2/2] c++: Print function template parms when relevant [part 2]

Matthias Kretz m.kretz@gsi.de
Fri Nov 26 15:24:55 GMT 2021



Restore status-quo how function template specializations were diagnosed.

Signed-off-by: Matthias Kretz <m.kretz@gsi.de>

gcc/testsuite/ChangeLog:

	* g++.dg/diagnostic/default-template-args-1.C: Adjust for
	different presentation of function template specializations.
	* g++.dg/ext/pretty1.C: Ditto.
	* g++.old-deja/g++.ext/pretty3.C: Ditto.
	* g++.old-deja/g++.pt/memtemp77.C: Ditto.

gcc/cp/ChangeLog:

	* error.c (dump_function_decl): Pretty print all template
	specializations.
	(dump_function_name): Only print template parms if given a
	function template specialization.
---
 gcc/cp/error.c                                 | 18 ++++++++++--------
 .../diagnostic/default-template-args-1.C       |  4 ++--
 gcc/testsuite/g++.dg/ext/pretty1.C             |  2 +-
 gcc/testsuite/g++.old-deja/g++.ext/pretty3.C   |  2 +-
 gcc/testsuite/g++.old-deja/g++.pt/memtemp77.C  |  2 +-
 5 files changed, 15 insertions(+), 13 deletions(-)


--
──────────────────────────────────────────────────────────────────────────
 Dr. Matthias Kretz                           https://mattkretz.github.io
 GSI Helmholtz Centre for Heavy Ion Research               https://gsi.de
 stdₓ::simd
──────────────────────────────────────────────────────────────────────────
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-c-Print-function-template-parms-when-relevant-part-2.patch
Type: text/x-patch
Size: 5217 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211126/7ec137b6/attachment.bin>


More information about the Gcc-patches mailing list