[Issue 9254] New: ICE on invalid foreach aggregate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 1 12:41:20 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9254
Summary: ICE on invalid foreach aggregate
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dmitry.olsh at gmail.com
--- Comment #0 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2013-01-01 12:41:19 PST ---
The following:
void main(){
foreach(divisor; !(2, 3, 4, 8, 7, 9))
foreach(v; 0..uint.max)//comment this out and it compiles
{
}
}
Crashes DMD 2.061beta with:
fastdiv.d(79): Error: invalid foreach aggregate false
Assertion failure: '0' on line 2660 in file 'statement.c'
abnormal program termination
2.060 produces same results.
--
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