digitalmars.D.bugs - [Issue 8804] New: countUntil warning on an infinite range
- d-bugmail puremagic.com (25/25) Oct 11 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8804
- d-bugmail puremagic.com (6/6) Oct 11 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8804
- monarch_dodra (4/8) Oct 12 2012 Nice. Compiler is *too* smart! :D
- d-bugmail puremagic.com (14/15) Oct 12 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8804
- d-bugmail puremagic.com (7/8) Oct 12 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8804
- d-bugmail puremagic.com (12/12) Dec 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8804
http://d.puremagic.com/issues/show_bug.cgi?id=8804 Summary: countUntil warning on an infinite range Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2012-10-11 14:34:19 PDT --- import std.range: recurrence; import std.algorithm: countUntil; void main() { auto fibs = recurrence!q{a[n-1] + a[n-2]}(1, 1); auto f20 = countUntil!(x => x >= 20)(fibs); } DMD 2.061alpha: ...\algorithm.d(4038): Warning: statement is not reachable -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 11 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8804 --- Comment #1 from bearophile_hugs eml.cc 2012-10-11 14:34:51 PDT --- Of course it needs to be compiled with warnings on. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 11 2012
On Thursday, 11 October 2012 at 21:34:52 UTC, bearophile_hugs eml.cc wrote:http://d.puremagic.com/issues/show_bug.cgi?id=8804 --- Comment #1 from bearophile_hugs eml.cc 2012-10-11 14:34:51 PDT --- Of course it needs to be compiled with warnings on.Nice. Compiler is *too* smart! :D I got this one.
Oct 12 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8804 monarchdodra gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |monarchdodra gmail.com AssignedTo|nobody puremagic.com |monarchdodra gmail.com --- Comment #2 from monarchdodra gmail.com 2012-10-12 09:34:32 PDT --- (In reply to comment #1)Of course it needs to be compiled with warnings on.Nice. Compiler is *too* smart! :D I got this one (unless you had it?). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 12 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8804 --- Comment #3 from bearophile_hugs eml.cc 2012-10-12 10:52:16 PDT --- (In reply to comment #2)(unless you had it?).It's all yours. I have not yet started fixing bugs. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 12 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8804 monarchdodra gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from monarchdodra gmail.com 2012-12-16 23:11:49 PST --- https://github.com/D-Programming-Language/phobos/pull/951/files Fixed and verified by monarchdodra on 17 dec 2012. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 16 2012