[Issue 4013] Inconsistent codeview debug info for classes derived from IUnknown

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 27 01:16:17 PDT 2010


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


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, wrong-code


--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> 2010-03-27 01:16:14 PDT ---
This is caused by using sym->toPrettyChars() most of the time, but sometimes
not on cpp-interfaces. I think toPrettyChars() should always be used. Here's a
patch:

Index: toctype.c
===================================================================
--- toctype.c    (revision 419)
+++ toctype.c    (working copy)
@@ -381,8 +381,12 @@

     /* Need this symbol to do C++ name mangling
      */
-    const char *name = sym->isCPPinterface() ? sym->ident->toChars()
-                          : sym->toPrettyChars();
+    const char *name = sym->toPrettyChars();
     s = symbol_calloc(name);
     s->Sclass = SCstruct;
     s->Sstruct = struct_calloc();

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