[Issue 17705] std.math.isFinite cannot run at compile-time

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17705

--- Comment #1 from Infiltrator  ---

/opt/compilers/dmd2/include/std/math.d(5385): Error: cannot convert  to
ushort* at compile time /d948/f137.d(2): called from here: isFinite(15.)


--


[Issue 17706] New: std.math.isFinite does not compile for cdouble: "No traits support for cdouble"

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17706

  Issue ID: 17706
   Summary: std.math.isFinite does not compile for cdouble: "No
traits support for cdouble"
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: lt.infiltra...@gmail.com


import std.math : isFinite;

void main() {
cdouble foo = 3 + 3i;
assert(foo.isFinite);
}

/opt/compilers/dmd2/include/std/math.d(330): Error: static assert "No traits
support for cdouble" /opt/compilers/dmd2/include/std/math.d(5384): instantiated
from here: floatTraits!cdouble /d598/f163.d(5): instantiated from here:
isFinite!cdouble


This works fine for both cfloat and creal.

--


[Issue 17705] New: std.math.isFinite cannot run at compile-time

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17705

  Issue ID: 17705
   Summary: std.math.isFinite cannot run at compile-time
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: lt.infiltra...@gmail.com


import std.math : isFinite;
enum test = isFinite(15.0);


>From what I understand from ketmar, the issue is that the CTFE allows casting
of floating types only to the same size, but isFinite casts it to ushort.  This
can be solved for float and double by using uint and ulong, respectively; but I
do not know how to make it work real, unless we allow casting to a
struct/array.

--


[Issue 17697] Ddoc: automatically highlight URLs outside of macro arguments

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17697

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

https://github.com/dlang/dmd/commit/f100182bbde9496063c223fab2880a901be29880
fix Issue 17697 - Ddoc: automatically highlight URLs outside of macro arguments

https://github.com/dlang/dmd/commit/d15072fc64c1d59ac107834a3c2738919a243002
Merge pull request #7043 from WalterBright/fix17697

fix Issue 17697 - Ddoc: automatically highlight URLs outside of macro…
merged-on-behalf-of: Walter Bright 

--


[Issue 17697] Ddoc: automatically highlight URLs outside of macro arguments

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17697

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

   What|Removed |Added

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

--


[Issue 17676] [REG 2.075] bad inlining of functions with multiple return statements

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17676

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

   What|Removed |Added

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

--


[Issue 17676] [REG 2.075] bad inlining of functions with multiple return statements

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17676

--- Comment #7 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/d48421509341bfb43ac48cd3b971948f4b55f57b
fix issue 17676: do not inline function with multiple return values as
statements

https://github.com/dlang/dmd/commit/95dba7d707437aa68a21f1e048dac6e18bde043a
Merge pull request #7029 from rainers/issue_17676

fix issue 17676:  [REG 2.075] bad inlining of functions with multiple return
statements
merged-on-behalf-of: Walter Bright 

--


[Issue 17704] Dont parse protocols as ddoc sections

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17704

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com
 Resolution|WORKSFORME  |DUPLICATE

--- Comment #1 from Walter Bright  ---


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

--


[Issue 17697] Ddoc: automatically highlight URLs outside of macro arguments

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17697

Walter Bright  changed:

   What|Removed |Added

 CC||b2.t...@gmx.com

--- Comment #6 from Walter Bright  ---
*** Issue 17704 has been marked as a duplicate of this issue. ***

--


[Issue 17704] Dont parse protocols as ddoc sections

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17704

b2.t...@gmx.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--


[Issue 17704] New: Dont parse protocols as ddoc sections

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17704

  Issue ID: 17704
   Summary: Dont parse protocols as ddoc sections
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Keywords: ddoc
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: b2.t...@gmx.com

"http:" and "https:" and "ftp:" should not be parsed as DDOC section.
Example showing why: https://dlang.org/phobos/ddmd_backend_code_x86.html

--


[Issue 17702] codemirror hangs firefox for several seconds

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17702

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

   What|Removed |Added

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

--


[Issue 17702] codemirror hangs firefox for several seconds

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17702

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

https://github.com/dlang/dlang.org/commit/fb777cdb28b81c07cf9343103c61fb6eeffccbd2
Fix Issue 17702 - codemirror hangs firefox for several seconds

https://github.com/dlang/dlang.org/commit/a9065a2dc39d60c028622a4de1c2e8ae4103757b
Merge pull request #1849 from wilzbach/fix-17702

Fix Issue 17702 - codemirror hangs firefox for several seconds
merged-on-behalf-of: Vladimir Panteleev 

--


[Issue 14246] RAII - proper destruction of partially constructed objects/structs

2017-07-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14246

Moritz Maxeiner  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||mor...@ucworks.org
 Resolution|FIXED   |---

--- Comment #9 from Moritz Maxeiner  ---
The fix for this has been reverted in [1] and testing Shachar Shemesh's example
with 2.075.0 shows that the destructor for A is not run.
That this issue has been fixed is also erroneously shown in the changelog for
2.075.0.

[1] https://github.com/dlang/dmd/pull/6913

--