Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
October 11, 2012 [Issue 8804] New: countUntil warning on an infinite range | ||||
---|---|---|---|---|
| ||||
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: ------- |
October 11, 2012 [Issue 8804] countUntil warning on an infinite range | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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: ------- |
October 12, 2012 Re: [Issue 8804] countUntil warning on an infinite range | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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.
|
October 12, 2012 [Issue 8804] countUntil warning on an infinite range | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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: ------- |
October 12, 2012 [Issue 8804] countUntil warning on an infinite range | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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: ------- |
December 17, 2012 [Issue 8804] countUntil warning on an infinite range | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation