[Issue 3842] New: ICE(expression.c) using pointer in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 22 14:32:15 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3842

           Summary: ICE(expression.c) using pointer in CTFE
           Product: D
           Version: 1.047
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code, patch
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2010-02-22 14:32:11 PST ---
Regression since 1.047 and 2.032.
---
struct Bug3842{
   int x;
}

int test3842(int z) {
   Bug3842 w;
   w.x = 3;
   return (*(&w)).x;   
}

static assert(test3842(51)==51);
---
It's just crashing while printing the error message.

PATCH: in interpret.c, DotVarExp::interpret.

    else
-        error("%s.%s is not yet implemented at compile time", ex->toChars(),
var->toChars());
+        error("%s.%s is not yet implemented at compile time", e1->toChars(),
var->toChars());
    }

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


More information about the Digitalmars-d-bugs mailing list