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


Jeremie Pelletier <jerem...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jerem...@gmail.com


--- Comment #2 from Jeremie Pelletier <jerem...@gmail.com> 2009-09-05 13:47:22 
PDT ---
The following patch to mtype.c fix the issue:

--- ..\src\orig\mtype.cpp    Thu Sep 03 01:01:40 2009
+++ ..\src\dmd\mtype.cpp    Sat Sep 05 16:42:50 2009
@@ -4530,6 +4530,11 @@
             goto Lerror;
             goto L3;
         }
+        else if(v && id == Id::stringof) {
+            e = new DsymbolExp(loc, s, 0);
+            *pe = new DotIdExp(loc, e, id);
+            return;
+        }
         t = s->getType();
         if (!t && s->isDeclaration())
             t = s->isDeclaration()->type;

It turns out stringof was applied on the type of the Dsymbol, not the symbol
itself.

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

Reply via email to