[Issue 7217] New: Regression(head 7c839960): [CTFE] ICE on accesing struct array field
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 4 00:22:01 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7217
Summary: Regression(head 7c839960): [CTFE] ICE on accesing
struct array field
Product: D
Version: D1 & D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis <verylonglogin.reg at gmail.com> 2012-01-04 11:22:00 MSK ---
It compiles with dmd 2.057. But with head commit (7c839960):
Assertion failure: '((StructLiteralExp *)newval)->ownedByCtfe' on line 6281 in
file 'interpret.c'
---
struct S { int[] arr; }
int f() {
auto s = S();
auto t = s.arr;
return 0;
}
enum e = f();
---
--
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