[Issue 19262] hashOf associative array should infer nothrow

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19262

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/druntime

https://github.com/dlang/druntime/commit/050ad81f24e1543f409cc0280e9f5d0c81193eea
Fix Issue 19262 - hashOf associative array should infer nothrow

https://github.com/dlang/druntime/commit/f60615f47acd84786c0866a4688e2bdbaf5e7815
Merge pull request #2323 from n8sh/issue-19262

Fix Issue 19262 - hashOf associative array should infer nothrow
merged-on-behalf-of: Nathan Sashihara 

--


[Issue 19262] hashOf associative array should infer nothrow

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19262

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 19278] extern(C++, "name") doesn't accept expressions

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19278

--- Comment #2 from Manu  ---
Attempt: https://github.com/dlang/dmd/pull/8787

--


[Issue 19282] hashOf segfaults for non-null C++ objects

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19282

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 19282] hashOf segfaults for non-null C++ objects

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19282

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/druntime

https://github.com/dlang/druntime/commit/702e0c1720d59479e669ef38800238ef070166d7
Fix Issue 19282 - hashOf segfaults for non-null C++ objects

https://github.com/dlang/druntime/commit/565690adbbbf57fc8ee29a6d8556f14008143008
Merge pull request #2318 from n8sh/issue-19282

Fix Issue 19282 - hashOf segfaults for non-null C++ objects
merged-on-behalf-of: Nathan Sashihara 

--


[Issue 19243] [REG 2.081] Can no longer override pragma(lib) with -L switch

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19243

--- Comment #3 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/aa31c549f5c444923b04bce29a9d0187c62597d5
fix issue 19243

revert to arg order before dmd#8172
but keep *.a files at the beginning

--


[Issue 19243] [REG 2.081] Can no longer override pragma(lib) with -L switch

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19243

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 19266] Some source files names are no longer accepted

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19266

--- Comment #3 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/ac9272cd42a3a2c10639217abf98b166f9b12baf
fix issue 19266 - Some source files names are no longer accepted

only add the \\?\ prefix if the filename is actually long and does not start
with \\ already.

--


[Issue 19262] hashOf associative array should infer nothrow

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19262

--- Comment #1 from Nathan S.  ---
Pull request: https://github.com/dlang/druntime/pull/2323

--


[Issue 19262] hashOf associative array should infer nothrow

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19262

Nathan S.  changed:

   What|Removed |Added

Summary|core.internal.hash.hashOf   |hashOf associative array
   |associative array should|should infer nothrow
   |infer nothrow   |

--


[Issue 19289] std.range.transposed with enforceNotJagged not throwing

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19289

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 19289] std.range.transposed with enforceNotJagged not throwing

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19289

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/aaa00b723289a4bcfde4928eddfa05a8f4b6d5c4
Fix Issue 19289 - std.range.transposed with enforceNotJagged not throwing

https://github.com/dlang/phobos/commit/264ab218dc15be2caecb4c95aa6016145f0fca04
Merge pull request #6723 from crocopaw/transposed

Fix Issue 19289 - std.range.transposed with enforceNotJagged not throwing
merged-on-behalf-of: Nathan Sashihara 

--


[Issue 19289] New: std.range.transposed with enforceNotJagged not throwing

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19289

  Issue ID: 19289
   Summary: std.range.transposed with enforceNotJagged not
throwing
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: n8sh.second...@hotmail.com

See https://forum.dlang.org/thread/tmqppgmuevecltmxy...@forum.dlang.org

berni wrote:
---
I expect this small program to throw an Exception:

> import std.stdio;
> import std.range;
>
> void main()
> {
> auto a = [[1,2],
>   [4,5,3]];
> 
> a.transposed!(TransverseOptions.enforceNotJagged).writeln;
> }

But it just outputs:

> [[1, 4], [2, 5], [3]]

Is it a bug or is it me who's doing something wrong?
---

--


[Issue 19289] std.range.transposed with enforceNotJagged not throwing

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19289

--- Comment #1 from Nathan S.  ---
Pull request: https://github.com/dlang/phobos/pull/6723

--


[Issue 19252] Templated format with variable width allocates 2GB of RAM per call.

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19252

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 19207] std.algorithm.subsitute wrong results for single subrange substitution

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19207

--- Comment #2 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/82c73711a590d5757951b8aea3c20b842c043e71
fix issue 19207

--


[Issue 19207] std.algorithm.subsitute wrong results for single subrange substitution

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19207

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--


[Issue 19252] Templated format with variable width allocates 2GB of RAM per call.

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19252

--- Comment #1 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/c156f4ad95c2053ebcd2e6ced9d37ce5af8cc470
Fix issue 19252: avoid ridiculous format length overestimate; dynamic-width
strings should estimate width 0, not int.max

https://github.com/dlang/phobos/commit/f12924e8e21cc2c0ef9a54178611c242a4aa8178
Merge pull request #6713 from
FeepingCreature/fix/avoid-ludicrous-overallocation

Fix issue 19252: avoid ludicrous format length overestimate

--


[Issue 18851] std.net.curl.post cannot be used with !ubyte

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18851

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/0f999e0a0aa4a211b1b7ccf1d44ca6c1e0245ac7
fix issue 18851

https://github.com/dlang/phobos/commit/7f8e4fa334b614d5740136e9fa6e15696235307a
Merge pull request #6710 from wolframw/issue_18851

Fix Issue 18851 -- std.net.curl.post cannot be used with !ubyte
merged-on-behalf-of: Sebastian Wilzbach 

--


[Issue 5363] const + alias this = wrong code

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5363

--- Comment #9 from Walter Bright  ---
I simplified it a bit more, so it happens at compile time:

  struct S {
int dummy;
alias dummy this;
  }
  int foo(int){ return 1; }
  int foo(const(S)){ return 2; }

  void test() {
static assert(foo(cast(const)S.init) == 2); // pass
static assert(foo(S.init) == 2); // fail
  }

Here's the trouble. With alias this, the conversion of S to int is considered
an 'exact' match, while the conversion of S to const is considered a 'constant'
match, which is not as good as 'exact'. Hence, the 'exact' is selected and
foo(int) is called.

The levels of conversion are:

nomatch
convert
constant
exact

We could change an alias this conversion to a 'convert' match, but it is
unknown how much breakage this will cause. It seems to be a rather drastic
change.

The compiler source code is the TypeStruct.implicitConvTo() function in
mtype.d.

--


[Issue 5363] const + alias this = wrong code

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5363

Walter Bright  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=6777

--


[Issue 6777] alias this disables casting for classes

2018-10-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6777

Walter Bright  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=5363

--