[Issue 4059] Incorrect C++ name mangling

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 23 14:01:16 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4059


Robert Clipsham <robert at octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #4 from Robert Clipsham <robert at octarineparrot.com> 2010-04-23 22:01:13 BST ---
The following patch seems to fix the issue, I haven't tested to see if this
breaks mangling in other cases though:

--- cppmangle.c 2010-03-18 18:58:06.000000000 +0000
+++ cppmangle.c 2010-04-23 21:59:47.000000000 +0100
@@ -69,11 +69,10 @@
     {
        if (p == components.data[i])
        {
-           /* Sequence is S_, S0_, .., S9_, SA_, ..., SZ_, S10_, ...
+           /* Sequence is S0_, .., S9_, SA_, ..., SZ_, S10_, ...
             */
            buf->writeByte('S');
-           if (i)
-               writeBase36(buf, i - 1);
+           writeBase36(buf, i);
            buf->writeByte('_');
            return 1;
        }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list