Thread overview
[Issue 6831] New: mangled name over 128 characters becomes unreadable
Oct 19, 2011
Simen Kjaeraas
Jan 21, 2012
Walter Bright
October 19, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6831

           Summary: mangled name over 128 characters becomes unreadable
           Product: D
           Version: D1 & D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: kekeniro2@yahoo.co.jp


--- Comment #0 from kekeniro2@yahoo.co.jp 2011-10-19 11:52:26 PDT ---
I found that when a mangled name is very long, it turns into UNREADABLE characters. And the limit of the length is 128 characters.( It is too short! )

----- Beginning of source
module manglingtest;    // length of module name is significant!

class MyClass { }

void tfunc(T, U)(T a, U b) { }

void main() {
        auto a = new MyClass;
        auto b = new MyClass;
        tfunc(a,b);        // wrong mangling
}
----- End of source

(Additional) I am using a tool to read build messages and map files, so such unreadables are especially inconvenienced. And I want to write for profiler's output, too.

Environment:
D2.055
Windows XP SP3 32-bit

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 19, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6831


Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras@gmail.com


--- Comment #1 from Simen Kjaeraas <simen.kjaras@gmail.com> 2011-10-19 12:57:08 PDT ---
This is a limitation of the current linker. Until a linker comes around that can handle humongous names, this will not be fixed. Walter is in the process of rewriting the linker, so perhaps this will eventually be fixed, but don't hold your breath.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6831


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |WONTFIX


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2012-01-21 00:23:51 PST ---
It'll have to wait until we move to a new object file format.

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