[Issue 4852] core.demangle cannot demangle functions with class/struct return types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 25 00:04:46 PDT 2010


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



--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> 2010-09-25 00:03:59 PDT ---
Created an attachment (id=774)
corrected patch including some additions

Please ignore the previous patch, it is flawed and breaks demangling other
symbols.

What is actually necessary is to call parseQualifiedName instead of parseLName
to get the full qualified name, but this involves a call to a function declared
later which does not work with local functions, so I placed the local functions
into a struct.

Included is also a bug fix decoding string literals in template arguments (line
1064). This allows to reenable the 2 failing unittest symbols.

I'm proposing to add an argument to demangle() whether the full type is
requested or just the qualified name.

I've added a function "decodeDmdString" to decompress symbols that are emitted
compressed by dmd on windows. I think it is very much related to demangling, so
it should have its place in this module, but a better name would be much
appreciated.

-- 
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