[Issue 9923] New: [ICE] (interpret.c line 167) with countUntil on Typedef[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 11 16:03:49 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9923
Summary: [ICE] (interpret.c line 167) with countUntil on
Typedef[]
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-04-11 16:03:48 PDT ---
import std.algorithm: countUntil;
import std.typecons: Typedef;
alias Foo = Typedef!(const string);
immutable Foo[] bar = ["a", "b"];
void main() {
Foo a;
countUntil(bar, a);
}
DMD 2.063alpha gives:
Assertion failure: 'v->ctfeAdrOnStack >= 0 && v->ctfeAdrOnStack <
stackPointer()' on line 167 in file 'interpret.c'
Removing the const the compiler doesn't crash:
import std.algorithm: countUntil;
import std.typecons: Typedef;
alias Foo = Typedef!(string);
immutable Foo[] bar = ["a", "b"];
void main() {
Foo a;
countUntil(bar, a);
}
--
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