digitalmars.D.bugs - [Issue 11603] New: Refused std.algorithm.canFind on an array of enums
- d-bugmail puremagic.com (26/26) Nov 25 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (13/13) Dec 03 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (16/16) Dec 03 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (19/27) Dec 03 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (6/6) Dec 03 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (12/12) Dec 04 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (10/10) Dec 04 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (9/9) Dec 09 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (11/11) Dec 19 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (9/9) Dec 19 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11603
- d-bugmail puremagic.com (8/8) Jan 15 2014 https://d.puremagic.com/issues/show_bug.cgi?id=11603
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Summary: Refused std.algorithm.canFind on an array of enums Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: regression Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc I think used to work in dmd v2.063.2: import std.algorithm: canFind; void main() { enum Foo { x } [Foo.x].canFind(Foo.x); } With dmd 2.065alpha it gives: ...\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(3834): Error: template instance std.traits.isSomeChar!(Foo) recursive expansion -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 25 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|Phobos |DMD Platform|x86 |All Resolution| |DUPLICATE *** This issue has been marked as a duplicate of issue 11610 *** -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | I think the problem is not yet solved, see: void main() { import std.algorithm: canFind; enum Foo : ubyte { A } assert([Foo.A].canFind(Foo.A)); } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|DMD |Phobos Summary|Refused |std.algorithm.canFind does |std.algorithm.canFind on an |not work when needle is |array of enums |1-byte zero OS/Version|Windows |AllI think the problem is not yet solved, see: void main() { import std.algorithm: canFind; enum Foo : ubyte { A } assert([Foo.A].canFind(Foo.A)); }This is a Phobos regression caused by: https://github.com/D-Programming-Language/phobos/pull/1492 I commented about the bug on github. https://github.com/D-Programming-Language/phobos/pull/1492/files#r8087442 Reused this issue number for the Phobos bug, and changed the summary. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 https://github.com/D-Programming-Language/phobos/pull/1744 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 03 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/ab34fb92addca61755474df04a0d0d6e0f1148a2 fix Issue 11603 - std.algorithm.canFind does not work when needle is 1-byte zero https://github.com/D-Programming-Language/phobos/commit/c98f5f58114b798f51f40bf837f924e2afa3f646 Issue 11603 - std.algorithm.canFind does not work when needle is 1-byte zero -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 04 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull Status|REOPENED |RESOLVED Resolution| |FIXED -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 04 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Commit pushed to 2.065 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/761dd246ee900118ff14c35d7b2680f8abea16c6 Issue 11603 - std.algorithm.canFind does not work when needle is 1-byte zero -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 09 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Commits pushed to 2.065 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/ab34fb92addca61755474df04a0d0d6e0f1148a2 fix Issue 11603 - std.algorithm.canFind does not work when needle is 1-byte zero https://github.com/D-Programming-Language/phobos/commit/c98f5f58114b798f51f40bf837f924e2afa3f646 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 19 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Commit pushed to 2.065 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/13b8101061b2e5824c0e0a08654922649acf4978 Issue 11603 - std.algorithm.canFind does not work when needle is 1-byte zero -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 19 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11603 Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/13b8101061b2e5824c0e0a08654922649acf4978 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 15 2014