September 04, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2202


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch




--- Comment #8 from Don <clugdbug@yahoo.com.au>  2009-09-04 08:10:11 PDT ---

PATCH: mtype.c, in TypeClass::dotExp(), around line 6350 in D2.032. Don't
convert class.x into this.x if inside a typeof() and we don't have a 'this'.

--------
    /* It's:
     *    Class.d
     */
    if (d->isTupleDeclaration())
    {
        e = new TupleExp(e->loc, d->isTupleDeclaration());
        e = e->semantic(sc);
        return e;
    }
-    else if (d->needThis() && (hasThis(sc) || !d->isFuncDeclaration()))
+    else if (d->needThis() && (hasThis(sc) || (!sc->intypeof &&
!d->isFuncDeclaration())))
    {
        if (sc->func)
        {
        ClassDeclaration *thiscd;
        thiscd = sc->func->toParent()->isClassDeclaration();
-------

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


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #9 from Walter Bright <bugzilla@digitalmars.com> 2009-10-06 02:13:59 PDT ---
Fixed dmd 1.048 and 2.033

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »