[Issue 6030] New: Segmentation fault with method overloading and alias this

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 18 11:42:18 PDT 2011


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

           Summary: Segmentation fault with method overloading and alias
                    this
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2011-05-18 19:38:10 BST ---
struct A
{
    static A a;
    alias a this;
}

struct B
{
    int opSlice(size_t, size_t);
    int opSlice(size_t, A);
}

void main()
{
    B b;
    b[0..A];
}

Causes a segmentation fault using the latest git. Possibly related to issue
#6029.

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