This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH C++] Fix PR70182 -- missing "on" in mangling of unresolved operators
- From: Nathan Sidwell <nathan at acm dot org>
- To: Markus Trippelsdorf <markus at trippelsdorf dot de>, gcc-patches at gcc dot gnu dot org
- Cc: Jason Merrill <jason at redhat dot com>
- Date: Wed, 11 Jan 2017 08:21:08 -0500
- Subject: Re: [PATCH C++] Fix PR70182 -- missing "on" in mangling of unresolved operators
- Authentication-results: sourceware.org; auth=none
- References: <20170111131623.GB288@x4>
On 01/11/2017 08:16 AM, Markus Trippelsdorf wrote:
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -2813,6 +2813,8 @@ write_template_args (tree args)
static void
write_member_name (tree member)
{
+ if (abi_version_at_least (11) && IDENTIFIER_OPNAME_P (member))
+ write_string ("on");
It looks like you need to:
1) add documentation to doc/invoke.texi (-fabi-version)
2) add something like:
if (abi_warn_or_compat_version_crosses (11))
G.need_abi_warning = 1;
into that if clause.
nathan
--
Nathan Sidwell