[Issue 3196] New: Bad struct declaration before a anonymous delegate within the parameter list show a segment fault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 20 16:11:31 PDT 2009


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

           Summary: Bad struct declaration before a anonymous delegate
                    within the parameter list show a segment fault
           Product: D
           Version: 2.031
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: lifc0 at yahoo.com.cn


Try this on both linux and windows with dmd 2.031 give me a segment fault
because of a null pointer reference.

struct Foo {
}

void foo (Foo b, void delegate ()) {
}

void main () {
    foo(Foo(1), (){});
}

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