Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 01, 2013 [Issue 9254] New: ICE on invalid foreach aggregate | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: dmitry.olsh@gmail.com --- Comment #0 from Dmitry Olshansky <dmitry.olsh@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: ------- |
January 03, 2013 [Issue 9254] ICE on invalid foreach aggregate | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Olshansky | http://d.puremagic.com/issues/show_bug.cgi?id=9254 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-03 05:24:24 PST --- https://github.com/D-Programming-Language/dmd/pull/1430 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 04, 2013 [Issue 9254] ICE on invalid foreach aggregate | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Olshansky | http://d.puremagic.com/issues/show_bug.cgi?id=9254 --- Comment #2 from github-bugzilla@puremagic.com 2013-01-04 00:48:23 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3a036842048beba5543f98c054b9fa30a1910c17 fix Issue 9254 - ICE on invalid foreach aggregate ForeachRangeStatement and WhileStatement are basically replaced into ForStatement in semantic phase. If any error occurs, they will be left as is, however. Therefor, `assert(0)` in blockExit, usesEH, comeFrom have the potential to be invoked. https://github.com/D-Programming-Language/dmd/commit/f762d5920e5b0b03753bfa3aab82c71ec90cb876 Merge pull request #1430 from 9rnsr/fix9254 Issue 9254 - ICE on invalid foreach aggregate -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 04, 2013 [Issue 9254] ICE on invalid foreach aggregate | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Olshansky | http://d.puremagic.com/issues/show_bug.cgi?id=9254 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation