This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH C++] Fix PR70182 -- missing "on" in mangling of unresolved operators


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]