www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3228] New: Segfault(mtype.c) multiple empty delegates

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: clugdbug 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: -------
Aug 05 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3228


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




--- Comment #1 from Don <clugdbug yahoo.com.au>  2009-08-06 00:01:17 PDT ---


*** This issue has been marked as a duplicate of issue 3196 ***

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