3842 – ICE(expression.c) using pointer in CTFE

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
Add an attachment (proposed patch, testcase, etc.)

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.


AltStyle によって変換されたページ (->オリジナル) /