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


Rainer Schuetze <r.sagita...@gmx.de> changed:

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


--- Comment #1 from Rainer Schuetze <r.sagita...@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: -------

Reply via email to