D issues are now
tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Summary: |
Regression(head 7c839960): [CTFE] ICE on accesing struct array field |
Product: |
D
|
Reporter: |
Denis Shelomovskii <verylonglogin.reg> |
Component: |
dmd | Assignee: |
No Owner <nobody> |
Status: |
RESOLVED
FIXED
|
Severity: |
regression
|
CC: |
bugzilla
|
Priority: |
P2
|
Keywords: |
ice-on-valid-code |
Version: |
D2 |
Hardware: |
Other |
OS: |
Windows |
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();
---