[Issue 6029] Regression(2.053): DMD stack overflow with invalid alias this

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 3 08:35:30 PDT 2011


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


Trass3r <mrmocool at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |mrmocool at gmx.de
           Platform|x86                         |All
           See Also|http://d.puremagic.com/issu |
                   |es/show_bug.cgi?id=6030     |
         Resolution|FIXED                       |
         OS/Version|Mac OS X                    |All


--- Comment #3 from Trass3r <mrmocool at gmx.de> 2011-11-03 08:34:59 PDT ---
It isn't fixed.

struct A
{
    static A a;
    alias a this;
}

void foo(A a)
{
}

void main()
{
//  foo(A);    // Error: type A is not an expression
    int s = A; // Error: type A has no value + stack overflow
}

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