[Issue 3228] New: Segfault(mtype.c) multiple empty delegates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 5 00:59:16 PDT 2009


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

           Summary: Segfault(mtype.c) multiple empty delegates
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


This has to be the funniest looking bug I've ever made. 

void main(){ (){}; (){}; }

ice.d(1): Error: function has no effect in expression (__dgliteral1)
<segfault>

Probably the same as bug #3227, it's segfaulting in the same place, and doesn't
segfault on D2.

This smiley variant should compile without errors. But it just segfaults.

---
static assert(!is(typeof((){(){}
         ;-()
{};})));

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