June 01, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4257

           Summary: ICE(interpret.c): passing parameter into CTFE as ref
                    parameter
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code, wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: clugdbug@yahoo.com.au


--- Comment #0 from Don <clugdbug@yahoo.com.au> 2010-06-01 07:21:27 PDT ---
int bug4257(ref int x) {
  return 3;
}

void bug4257b(int y) {
   static assert(bug4257(y));
}
--------
assert interpret.c(190) istate


And if it's not a reference parameter, it compiles but generates wrong code. This is the root cause of bug 3809, for example.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 02, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4257


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2010-06-02 15:34:10 PDT ---
http://www.dsource.org/projects/dmd/changeset/517

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