[Issue 18810] root/ctfloat depends upon backend

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

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #5 from Dlang Bot  ---
dlang/dmd pull request #9573 "translate strtold.c to strtold.d" was merged into
master:

- 67d7642915bb73949876b5091e9fa1f05a568d6b by Rainer Schuetze:
  fix Issue 18810 - root/ctfloat depends upon backend

  translate strtold.c to D

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

--


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

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

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #9558 "Fixes issues 16271, 18825, 8065, 5050 - Allow
function literals return by reference" was merged into master:

- 60251b8f0e191a8f0f5142ddd2d3807d0e06c58a by Boris Carvajal:
  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-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16271

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #9558 "Fixes issues 16271, 18825, 8065, 5050 - Allow
function literals return by reference" was merged into master:

- 60251b8f0e191a8f0f5142ddd2d3807d0e06c58a by Boris Carvajal:
  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-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8065

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #9558 "Fixes issues 16271, 18825, 8065, 5050 - Allow
function literals return by reference" was merged into master:

- 60251b8f0e191a8f0f5142ddd2d3807d0e06c58a by Boris Carvajal:
  Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by
reference

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

--


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

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

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #4 from Dlang Bot  ---
dlang/dmd pull request #9558 "Fixes issues 16271, 18825, 8065, 5050 - Allow
function literals return by reference" was merged into master:

- 60251b8f0e191a8f0f5142ddd2d3807d0e06c58a by Boris Carvajal:
  Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by
reference

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

--


[Issue 19792] typeof expression in parameter list appears to select wrong overload

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

asumf...@gmail.com changed:

   What|Removed |Added

Summary|Rtypeof expression in   |typeof expression in
   |parameter list appears to   |parameter list appears to
   |select wrong overload   |select wrong overload

--


[Issue 19792] New: Rtypeof expression in parameter list appears to select wrong overload

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

  Issue ID: 19792
   Summary: Rtypeof expression in parameter list appears to select
wrong overload
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: regression
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: asumf...@gmail.com

The following code fails since 2.085.x:

struct Node // dummy struct
{ int box; }
Node node;

auto box() @property
{
return node.box;
}
auto anythingButBox(typeof(box) arg) @property
{
return node.box = arg;
}
auto box(typeof(box()) arg) @property
{
return node.box = arg;
}
auto box(typeof(box) arg) @property
{
return node.box = arg;
}

The definition
auto box(typeof(box()) arg) @property
fails with:
Error: forward reference to template box

The definition
auto box(typeof(box) arg) @property
fails with:
Error: forward reference to template box
Error: forward reference to template box
(That's right, twice!)

If the definition of
auto box() @property
is moved below all others, previous versions of dmd segfault, I therefore
conclude that this is related to issue #19717.

auto box(typeof(box()) arg) @property
then fails with:
Error: forward reference to template box
Error: none of the overloads of box are callable using argument types (),
candidates are:
onlineapp.box(typeof(box()) arg)
onlineapp.box(typeof(box) arg)
onlineapp.box()
(the overload error is contradicting itself here!)

auto box(typeof(box) arg) @property
with:
Error: forward reference to template box
Error: circular typeof definition

--


[Issue 18810] root/ctfloat depends upon backend

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

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #4 from Dlang Bot  ---
@rainers updated dlang/dmd pull request #9573 "translate strtold.c to
strtold.d" fixing this issue:

- fix Issue 18810 - root/ctfloat depends upon backend

  translate strtold.c to D

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

--


[Issue 10665] The documentation produced by ddoc should clearly list all public imports of a module

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

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #2 from Dlang Bot  ---
@JinShil updated dlang/dmd pull request #9068 "Fix Issue 10665 - The
documentation produced by ddoc should clearly list all public imports of a
module" fixing this issue:

- Fix Issue 10665 - The documentation produced by ddoc should clearly list all
public imports of a module

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

--


[Issue 19791] New: Bad cross-file detection

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

  Issue ID: 19791
   Summary: Bad cross-file detection
   Product: D
   Version: D2
  Hardware: All
   URL: http://dlang.org/
OS: All
Status: NEW
  Severity: enhancement
  Priority: P3
 Component: visuald
  Assignee: nob...@puremagic.com
  Reporter: x13...@126.com

//A.d
module A;
public import std.stdio;
public int varible;
public static int staticvar;

//B.d
module B;
import A;

When I type in B.d, neither functions of stdio nor “varible” will appear in the
auto-complete list, but however “staticvar” appears in the auto-complete list
correctly. Also, if I open the colorize system, “varible” would not be
colorized but “staticvar” could be colorized correctly. 

Please fix this and also add support for public imports.

--