[Issue 22146] std.algorithm.searching.findAdjacent() can fall off end of function
https://issues.dlang.org/show_bug.cgi?id=22146 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot --- @WalterBright created dlang/phobos pull request #8180 "fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off…" fixing this issue: - fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off end of function https://github.com/dlang/phobos/pull/8180 --
[Issue 22146] New: std.algorithm.searching.findAdjacent() can fall off end of function
https://issues.dlang.org/show_bug.cgi?id=22146 Issue ID: 22146 Summary: std.algorithm.searching.findAdjacent() can fall off end of function Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nob...@puremagic.com Reporter: bugzi...@digitalmars.com with: std/algorithm/searching.d(2620): Error: function `std.algorithm.searching.findAdjacent!("a == b", Repeat!int).findAdjacent` no `return exp;` or `assert(0);` at end of function std/algorithm/searching.d(2671): Error: template instance `std.algorithm.searching.findAdjacent!("a == b", Repeat!int)` error instantiating --
[Issue 22145] New: Wrong error message when `scope` errors are detected in foreach body
https://issues.dlang.org/show_bug.cgi?id=22145 Issue ID: 22145 Summary: Wrong error message when `scope` errors are detected in foreach body Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: pro.mathias.l...@gmail.com Using HEAD as of July 26th (67132039c4c792d7722daeb9bef0a305e2f74fb1). ``` int* global; struct Foo { int opApply (scope int delegate (scope int* ptr) @safe dg) @safe { return 0; } } void main () @safe { Foo f; foreach (scope int* x; f) { global = x; } } ``` Compiled with `-dip1000`, it should complain that the assignment violates `scope`, but currently we get: ``` foreach.d(13): Error: function `foreach.Foo.opApply(scope int delegate(scope int* ptr) @safe dg)` is not callable using argument types `(int delegate(int* x) nothrow @nogc @safe)` foreach.d(13):cannot pass argument `__foreachbody2` of type `int delegate(int* x) nothrow @nogc @safe` to parameter `scope int delegate(scope int* ptr) @safe dg` ``` --
[Issue 22138] foreach cannot declare the loop variables as scope
https://issues.dlang.org/show_bug.cgi?id=22138 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot --- dlang/dmd pull request #12912 "fix Issue 22138 - foreach cannot declare the loop variables as scope" was merged into master: - fb9a0aa82e5217d4689d08a3330ae22a096114e8 by Walter Bright: fix Issue 22138 - foreach cannot declare the loop variables as scope https://github.com/dlang/dmd/pull/12912 --
[Issue 17037] std.concurrency has random segfaults
https://issues.dlang.org/show_bug.cgi?id=17037 Walter Bright changed: What|Removed |Added Severity|normal |major --
[Issue 17037] std.concurrency has random segfaults
https://issues.dlang.org/show_bug.cgi?id=17037 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #8 from Walter Bright --- Still seeing it in FreeBSD running the Phobos test suite: FreeBSD 11.4 x64, DMD (bootstrap) Failing after 11m — Task Summary make[1]: *** [posix.mak:412: unittest/std/concurrency.run] Segmentation fault (core dumped) --
[Issue 22144] ICE(dcast.d): Floating point exception in castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702
https://issues.dlang.org/show_bug.cgi?id=22144 --- Comment #1 from Iain Buclaw --- The problem is the use of modulo by zero. --
[Issue 22144] ICE(dcast.d): Floating point exception in castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702
https://issues.dlang.org/show_bug.cgi?id=22144 Iain Buclaw changed: What|Removed |Added Keywords||ice CC||ibuc...@gdcproject.org --
[Issue 22144] New: ICE(dcast.d): Floating point exception in castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702
https://issues.dlang.org/show_bug.cgi?id=22144 Issue ID: 22144 Summary: ICE(dcast.d): Floating point exception in castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702 Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: critical Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: ibuc...@gdcproject.org struct test { int[0] foo; } void main() { test* t; cast(typeof(t.foo)[])t.foo; } --
[Issue 22143] Throwable ctor doesn't increment chained exception's ref count
https://issues.dlang.org/show_bug.cgi?id=22143 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot --- @rmanthorpe created dlang/druntime pull request #3525 "Fix Issue 22143 - Throwable ctor doesn't increment chained exception's ref count" fixing this issue: - Fix Issue 22143 - Throwable ctor doesn't increment chained exception's ref count https://github.com/dlang/druntime/pull/3525 --
[Issue 22143] New: Throwable ctor doesn't increment chained exception's ref count
https://issues.dlang.org/show_bug.cgi?id=22143 Issue ID: 22143 Summary: Throwable ctor doesn't increment chained exception's ref count Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nob...@puremagic.com Reporter: rma...@gmail.com If you catch a dip1008 ref-counted throwable and pass it into the constructor of an `Error` or `Exception` the ref count isn't incremented. You have to assign via the `next` property to achieve this. --- module chain void main() { try { throw new Exception("reasons..."); } catch(Exception e1) { auto rc1 = e1.refcount(); auto e2 = new Exception("stuff...", e1); // should increment ref count assert(e1.refcount() == rc1+1); // Assertion failure } } dmd -preview=dip1008 -run chain.d core.exception.AssertError@chain.d(10): Assertion failure --
[Issue 14250] add function for reading a password to std.getopt
https://issues.dlang.org/show_bug.cgi?id=14250 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot --- @teodutu updated dlang/phobos pull request #8179 "Fix Issue 14250 - add function for reading a password to std.getopt" fixing this issue: - Fix Issue 14250 - add function to read passwords https://github.com/dlang/phobos/pull/8179 --
[Issue 22142] New: Improve error reporting for std.curl.net
https://issues.dlang.org/show_bug.cgi?id=22142 Issue ID: 22142 Summary: Improve error reporting for std.curl.net Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nob...@puremagic.com Reporter: bachm...@yahoo.com std.net.curl doesn't provide information when something fails. Consider the following (not terribly obvious) typo: client.addRequestHeader("Content-Type", "Application/json"); followed by a call to post: post("https://api.todoist.com/rest/v1/tasks";, cmd, client); You get only a generic error message: HTTP request returned status code 400 () Compare this with the error message if you do the same thing with command line curl. The message is: Empty content That immediately points you in the right direction. What is the typo? The line at the beginning should be client.addRequestHeader("Content-Type", "application/json"); "Status code 400" does not help. "Empty content" does. --
[Issue 22133] [REG2.097] Breaking change in DotTemplateExp type semantics leading to e.g. isInputRange regression
https://issues.dlang.org/show_bug.cgi?id=22133 --- Comment #3 from Dlang Bot --- dlang/dmd pull request #12920 "[dmd-cxx] fix Issue 22133 - [REG2.097] Breaking change in DotTemplateExp type semantics leading to e.g. isInputRange regression" was merged into dmd-cxx: - 0b0591a50c0f6db6b6539cb3dba95edd291592d5 by Iain Buclaw: [dmd-cxx] fix Issue 22133 - [REG2.097] Breaking change in DotTemplateExp type semantics leading to e.g. isInputRange regression https://github.com/dlang/dmd/pull/12920 --
[Issue 21685] bad error message on private constructor: member this is not accessible
https://issues.dlang.org/show_bug.cgi?id=21685 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #4 from Dlang Bot --- @dandrei279 created dlang/dmd pull request #12919 "[DSSv3] Fix Issue 21685: add clearer message for private constructor" fixing this issue: - Fix Issue 21685: add clearer message for private constructor https://github.com/dlang/dmd/pull/12919 --
[Issue 22036] Color syntax highlight doesn't escape backticks in symbol names
https://issues.dlang.org/show_bug.cgi?id=22036 Iain Buclaw changed: What|Removed |Added Keywords||diagnostic CC||ibuc...@gdcproject.org --
[Issue 21685] bad error message on private constructor: member this is not accessible
https://issues.dlang.org/show_bug.cgi?id=21685 Andrei David changed: What|Removed |Added CC||dandrei...@gmail.com Assignee|nob...@puremagic.com|dandrei...@gmail.com --
[Issue 13685] std.numeric.arrayShape
https://issues.dlang.org/show_bug.cgi?id=13685 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #2 from Dlang Bot --- @lucica28 created dlang/phobos pull request #8178 "[DSSv3] Fix issue 13685 - add function arrayShape" fixing this issue: - Fix issue 13685 - add function arrayShape https://github.com/dlang/phobos/pull/8178 --
[Issue 13684] std.numeric.isRectangular
https://issues.dlang.org/show_bug.cgi?id=13684 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #2 from Dlang Bot --- @lucica28 updated dlang/phobos pull request #8175 "[DSSv3] Fix Issue 13684 - std.numeric.isRectangular" fixing this issue: - Fix issue 13684 https://github.com/dlang/phobos/pull/8175 --
[Issue 21637] Allow trailing comma in the ImportList
https://issues.dlang.org/show_bug.cgi?id=21637 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot --- @dorianverna17 created dlang/dmd pull request #12917 "[DSSv3] Fix issue 21637: Allow trailing comma in the ImportList" fixing this issue: - Fix issue 21637: Allow trailing comma in the ImportList https://github.com/dlang/dmd/pull/12917 --
[Issue 21637] Allow trailing comma in the ImportList
https://issues.dlang.org/show_bug.cgi?id=21637 Dorian Verna changed: What|Removed |Added CC||dorianver...@gmail.com Assignee|nob...@puremagic.com|dorianver...@gmail.com --
[Issue 21923] `@live` does not take destructor code into account.
https://issues.dlang.org/show_bug.cgi?id=21923 Jan Jurzitza changed: What|Removed |Added CC||d.b...@webfreak.org --- Comment #1 from Jan Jurzitza --- additionally there is a segfault (ICE) if you declare your variable using ``` scope t = Handle(10); ``` --
[Issue 17400] put a new line before "candidates are:" in error messages
https://issues.dlang.org/show_bug.cgi?id=17400 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot --- @dandrei279 created dlang/dmd pull request #12915 "[DSSv3] Fix Issue 17400: new line before candidates in error messages" fixing this issue: - Fix Issue 17400: new line before candidates in error messages https://github.com/dlang/dmd/pull/12915 --
[Issue 17400] put a new line before "candidates are:" in error messages
https://issues.dlang.org/show_bug.cgi?id=17400 Andrei David changed: What|Removed |Added CC||dandrei...@gmail.com Assignee|nob...@puremagic.com|dandrei...@gmail.com --
[Issue 16210] std.utf.byUTF can be made into a bidirectional range
https://issues.dlang.org/show_bug.cgi?id=16210 Vlăduț Chicoș changed: What|Removed |Added CC||vladut.chi...@gmail.com Assignee|nob...@puremagic.com|vladut.chi...@gmail.com --
[Issue 19727] std.algorithm.endsWith fails to compile while startsWith succeeds
https://issues.dlang.org/show_bug.cgi?id=19727 Vlăduț Chicoș changed: What|Removed |Added CC||vladut.chi...@gmail.com Assignee|nob...@puremagic.com|vladut.chi...@gmail.com --
[Issue 14250] add function for reading a password to std.getopt
https://issues.dlang.org/show_bug.cgi?id=14250 Teodor Dutu changed: What|Removed |Added CC||teodor.d...@gmail.com Assignee|nob...@puremagic.com|teodor.d...@gmail.com --