7217 – Regression(head 7c839960): [CTFE] ICE on accesing struct array field

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7217 - Regression(head 7c839960): [CTFE] ICE on accesing struct array field
Summary: Regression(head 7c839960): [CTFE] ICE on accesing struct array field
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 regression
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
Reported: 2012年01月04日 00:22 UTC by Denis Shelomovskii
Modified: 2015年06月09日 05:12 UTC (History)
1 user (show)

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 Denis Shelomovskii 2012年01月04日 00:22:00 UTC
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();
---


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