[Issue 15032] [REG2.068.1] coverage output is discreted around the calls to map(), canFind(), filter()

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15032

--- Comment #2 from j...@red.email.ne.jp ---
(In reply to jiki from comment #1)
> [command]
> dmd -cov mod_a.d mod_b.d

Oops, please run 'mod_a' after the compile finished, of course.

--


[Issue 14877] std.net.curl needs PATCH http method

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14877

badlink  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||andrea.9...@gmail.com
 Resolution|FIXED   |---

--- Comment #5 from badlink  ---
The current version in phobos of std.net.curl.patch does not upload any data in
the http request.

Small testcase: http://pastebin.com/UujEqh4K
Expected: the data field in the response should not be empty

-

Workaround: change the switch case in std.net.curl.HTTP.perform:

[...]
case Method.patch:
p.curl.set(CurlOption.customrequest, "PATCH");
p.curl.set(CurlOption.upload, 1L); // add this line
opt = CurlOption.customrequest;
break;
[...]

Note: probably this workaround does not leave a clean state.

--


[Issue 15033] New: Element type of float iota is double

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15033

  Issue ID: 15033
   Summary: Element type of float iota is double
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: normal
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: acehr...@yahoo.com

The following assert fails (passes with 'double'):

import std.range;

void main()
{
static assert(is (ElementType!(typeof(iota(0f))) == float));
}

There are a couple of recommended solutions in the following thread:

  http://forum.dlang.org/thread/msm14h$2ae$1...@digitalmars.com

Ali

--


[Issue 9891] Ability to modify immutable using default value of ref/out parameter

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9891

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

   What|Removed |Added

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

--


[Issue 9891] Ability to modify immutable using default value of ref/out parameter

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9891

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6b091dc67a71b82a30ba26d2af73e2d67180740c
fix Issue 9891 - Ability to modify immutable using default value of ref/out
parameter

https://github.com/D-Programming-Language/dmd/commit/065881c6f71ef8e76c882b2ce739fa452b547e8e
Merge pull request #5056 from 9rnsr/fix9891

Issue 9891 - Ability to modify immutable using default value of ref/out
parameter

--


[Issue 15030] [REG2.068.1] ICE with recursive delegate, -unittest, and std.range

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15030

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/d96a64973467d54a91693f87511da7289d1e1b71
fix Issue 15030 - ICE with recursive delegate, -unittest, and std.range

Refer the detailed explanation in `test/runnable/ice15030.d`.

https://github.com/D-Programming-Language/dmd/commit/ea5d85af7abf0b1e36fd42a8d98fd692a765dea0
Merge pull request #5058 from 9rnsr/fix15030

[REG2.068.1] Issue 15030 - ICE with recursive delegate, -unittest, and
std.range

--


[Issue 15030] [REG2.068.1] ICE with recursive delegate, -unittest, and std.range

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15030

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/d96a64973467d54a91693f87511da7289d1e1b71
fix Issue 15030 - ICE with recursive delegate, -unittest, and std.range

https://github.com/D-Programming-Language/dmd/commit/ea5d85af7abf0b1e36fd42a8d98fd692a765dea0
Merge pull request #5058 from 9rnsr/fix15030

--


[Issue 15021] [REG2.068.1] linker error with speculative instantiation and -inline

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15021

--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/61f79a8aa18a2d551cfeb7c1bc218ebc3f21cfc6
fix Issue 15021 - linker error with speculative instantiation and -inline

https://github.com/D-Programming-Language/dmd/commit/334e29178254ef0f02639b595a75f906e1b357ee
Merge pull request #5055 from 9rnsr/fix15021

--


[Issue 15034] ICE(glue.c line 1026) Assertion failure: '!fd->vthis->csym'

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15034

Kenji Hara  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #1 from Kenji Hara  ---


*** This issue has been marked as a duplicate of issue 15030 ***

--


[Issue 15030] [REG2.068.1] ICE with recursive delegate, -unittest, and std.range

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15030

Kenji Hara  changed:

   What|Removed |Added

 CC||enjouzensyou.bo...@gmail.co
   ||m

--- Comment #5 from Kenji Hara  ---
*** Issue 15034 has been marked as a duplicate of this issue. ***

--


[Issue 15034] New: ICE(glue.c line 1026) Assertion failure: '!fd->vthis->csym'

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15034

  Issue ID: 15034
   Summary: ICE(glue.c line 1026) Assertion failure:
'!fd->vthis->csym'
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: enjouzensyou.bo...@gmail.com

The following code causes an ICE in DMD 2.068.1.

---
// a.d
module a;

/*
std.algorithm:  fail
std.array:  fail
std.bigint: fail
std.datetime:   fail
std.json:   fail
std.meta:   OK
std.string: fail
std.traits: OK
*/
import std.algorithm;
---
// b.d
module b;

void pass(alias fn)(int a)
{
import std.algorithm;
fn(forward!a);
}

unittest
{
pass!((a){})(1);
}
---

build-cmd: dmd -unittest -main a b

dmd-output:
Assertion failure: '!fd->vthis->csym' on line 1026 in file 'glue.c'

--


[Issue 15032] [REG2.068.1] coverage output is discreted around the calls to map(), canFind(), filter()

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15032

Martin Nowak  changed:

   What|Removed |Added

 CC||c...@dawg.eu

--- Comment #3 from Martin Nowak  ---
According to Digger this is caused by
https://github.com/D-Programming-Language/dmd/pull/4944.

--


[Issue 15032] [REG2.068.1] coverage output is discreted around the calls to map(), canFind(), filter()

2015-09-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15032

Martin Nowak  changed:

   What|Removed |Added

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

--- Comment #4 from Martin Nowak  ---
The _Dmain functions ends up in the wrong object file (mod_a.o) b/c it's
codegen is triggered from the nested find function.
https://github.com/D-Programming-Language/dmd/blob/ea5d85af7abf0b1e36fd42a8d98fd692a765dea0/src/glue.c#L900

Therefor code for _Dmain is generated before the module's coverage symbol is
setup
(https://github.com/D-Programming-Language/dmd/blob/ea5d85af7abf0b1e36fd42a8d98fd692a765dea0/src/glue.c#L370)
and incUsageElem will silently be skipped
(https://github.com/D-Programming-Language/dmd/blob/ea5d85af7abf0b1e36fd42a8d98fd692a765dea0/src/toir.c#L62).

This order related bug is also fixed by
https://github.com/D-Programming-Language/dmd/pull/5058 which tries to emit
nested functions after their parent function.

--