[Issue 18657] std.range and std.algorithm can't handle refRange

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18657

--- Comment #6 from Dlang Bot  ---
@MartinNowak created dlang/phobos pull request #6943 "Merge remote-tracking
branch 'upstream/stable' into merge_stable" mentioning this issue:

- make `chain` compatible with `RefRange`

  Part of a series on issue 18657.

- make `group` compatible with `RefRange`

  Part of a series on issue 18657.

- make `choose` compatible with `RefRange`

  Part of a series on issue 18657.

- make `cycle` compatible with `RefRange`

  Part of a series on issue 18657.

- make `splitter` compatible with `RefRange`

  Part of a series on issue 18657.

- make `roundRobin` compatible with `RefRange`

  Part of a series on issue 18657.

- make `until` compatible with `RefRange`

  Part of a series on issue 18657.

https://github.com/dlang/phobos/pull/6943

--


[Issue 5050] No way to declare delegates with ref return

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5050

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #3 from Dlang Bot  ---
@BorisCarvajal updated dlang/dmd pull request #9558 "Fixes issues 16271, 18825,
8065, 5050 - Allow function literals return by reference" fixing this issue:

- Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by
reference

https://github.com/dlang/dmd/pull/9558

--


[Issue 8065] No way to write function/delegate literals returning ref T

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8065

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #2 from Dlang Bot  ---
@BorisCarvajal updated dlang/dmd pull request #9558 "Fixes issues 16271, 18825,
8065, 5050 - Allow function literals return by reference" fixing this issue:

- Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by
reference

https://github.com/dlang/dmd/pull/9558

--


[Issue 18825] No syntax for function literal returning a reference

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18825

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Dlang Bot  ---
@BorisCarvajal updated dlang/dmd pull request #9558 "Fixes issues 16271, 18825,
8065, 5050 - Allow function literals return by reference" fixing this issue:

- Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by
reference

https://github.com/dlang/dmd/pull/9558

--


[Issue 16271] Should be able to express that a lambda returns by reference

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16271

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Dlang Bot  ---
@BorisCarvajal updated dlang/dmd pull request #9558 "Fixes issues 16271, 18825,
8065, 5050 - Allow function literals return by reference" fixing this issue:

- Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by
reference

https://github.com/dlang/dmd/pull/9558

--


[Issue 19775] multiple argument string mixin doesn't expand tuples

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19775

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #4 from Dlang Bot  ---
dlang/dmd pull request #9521 "Fix Issue 19775 - multiple argument string mixin
doesn't expand tuples" was merged into master:

- a4949543bf8ea08a4a5533df1e90e277e5f237a4 by Nick Treleaven:
  Fix Issue 19775 - multiple argument string mixin doesn't expand tuples

https://github.com/dlang/dmd/pull/9521

--


[Issue 19719] Debugging string mixins using -mixin doesn't work

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19719

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #9464 "fix Issue 19719 - Debugging string mixins using
-mixin doesn't work" was merged into master:

- 51dfe6b91872002418e5889cd2a90110cbb144b7 by Rainer Schuetze:
  fix Issue 19719 - Debugging string mixins using -mixin doesn't work

  COFF: extend line number info to allow multiple segments in different source
files
  ensure empty line after mixin expansion

https://github.com/dlang/dmd/pull/9464

--


[Issue 19774] wrong code caused by opIndex

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19774

Илья Ярошенко  changed:

   What|Removed |Added

Summary|wrong code caused by|wrong code caused by
   |generic variadic opIndex|opIndex

--


[Issue 19774] wrong code caused by generic variadic opIndex

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19774

ag0aep6g  changed:

   What|Removed |Added

 CC||ag0ae...@gmail.com

--- Comment #1 from ag0aep6g  ---
Slighlty more reduced:


C bar()
{
return C(42);
}

C foo()
{
return bar()[1];
}

struct C
{
int x;

~this()
{
x = 0;
}

C opIndex(int a)
{
return this;
}
}

void main()
{
auto c = foo();
assert(c.x == 42); /* fails; should pass */
}


--


[Issue 19430] wrong code for `this =`, corrupted memory issue

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19430

--- Comment #11 from Илья Ярошенко  ---
I am starting to dig deeper since I have more code that uses RC with D.
The first one issue is https://issues.dlang.org/show_bug.cgi?id=19774
The second one related to generic `=` operator, still needs to be reduced.

--


[Issue 19099] Struct with field that has postblit or destructor makes struct assignable

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19099

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #2 from Dlang Bot  ---
@RazvanN7 updated dlang/dmd pull request #8507 "Fix Issue 19099 - Struct with
field that has postblit or destructor makes struct assignable" fixing this
issue:

- Fix Issue 19099 - Struct with field that has postblit or destructor makes
struct assignable

https://github.com/dlang/dmd/pull/8507

--


[Issue 15361] Incomprehensible error message: function declaration without return type.

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15361

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #3 from Dlang Bot  ---
@RazvanN7 updated dlang/dmd pull request #8344 "Fix Issue 15361 -
Incomprehensible error message: function declaration without return type"
fixing this issue:

- Fix Issue 15361 - Incomprehensible error message: function declaration
without return type

https://github.com/dlang/dmd/pull/8344

--


[Issue 19778] ICE when accessing empty array at compile time

2019-04-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19778

--- Comment #4 from Dlang Bot  ---
dlang/dmd pull request #9563 "[dmd-cxx] Fix Issue 19778 - ICE when accessing
empty array at compile time" was merged into dmd-cxx:

- dda95a1bef25a7647016e863cb4d05f563e53749 by RazvanN7:
  Fix Issue 19778 - ICE when accessing empty array at compile time

https://github.com/dlang/dmd/pull/9563

--