D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3842 - ICE(expression.c) using pointer in CTFE
Summary: ICE(expression.c) using pointer in CTFE
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: Other Windows
: P2 regression
Assignee: No Owner
URL:
Keywords: ice-on-valid-code, patch
Depends on:
Blocks:
 
Reported: 2010-02-22 14:32 UTC by Don
Modified: 2014-04-18 09:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2010-02-22 14:32:11 UTC
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());
    }
Comment 1 Don 2010-04-09 13:41:25 UTC
Fixed DMD1.058 and 2.043.