[Issue 1744] New: CTFE: crash on assigning void-returning function to variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 20 02:04:47 PST 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 at digitalmars.com
        ReportedBy: matti.niemenmaa+dbugzilla at 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.


-- 



More information about the Digitalmars-d-bugs mailing list