Summary: ICE(interpret.c): passing parameter into CTFE as ref
           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

--- Comment #0 from Don <> 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:
------- You are receiving this mail because: -------

Reply via email to