Thread overview
[Issue 1744] New: CTFE: crash on assigning void-returning function to variable
Dec 20, 2007
d-bugmail
Jan 01, 2008
d-bugmail
Jan 03, 2008
d-bugmail
December 20, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1744

           Summary: CTFE: crash on assigning void-returning function to
                    variable
           Product: D
           Version: 1.024
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: minor
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: matti.niemenmaa+dbugzilla@iki.fi


void foo() {}

int bar() {
        int x = foo();
}

const y = bar();

No ICE, just crashes. Does give the expected error messages for trying to assign void to int though, so it's not that bad.


-- 

January 01, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1744





------- Comment #1 from matti.niemenmaa+dbugzilla@iki.fi  2008-01-01 11:22 -------
Fixed in DMD 1.025.


-- 

January 03, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1744


bugzilla@digitalmars.com changed:

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




------- Comment #2 from bugzilla@digitalmars.com  2008-01-02 19:47 -------
Fixed dmd 1.025 and 2.009


--