[Issue 19893] New: version declaration must be at module level

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

  Issue ID: 19893
   Summary: version declaration must be at module level
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: turkey...@gmail.com

version = X;
  version = Y;
  extern(C++, "std"):
  version = Z;
  version = W;

1>error : version `Z` declaration must be at module level
1>error : version `W` declaration must be at module level


I feel like Z and W are still at module level...

--


[Issue 19892] Add CTFE support for std.bitmanip: nativeToBigEndian, bigEndianToNative, littleEndianToNative, nativeToLittleEndian

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

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Dlang Bot  ---
@n8sh created dlang/phobos pull request #7023 "Fix Issue 19892 - Add CTFE
support for std.bitmanip: nativeToBigEndian, bigEndianToNative,
littleEndianToNative, nativeToLittleEndian" fixing this issue:

- Fix Issue 19892 - Add CTFE support for std.bitmanip: nativeToBigEndian,
bigEndianToNative, littleEndianToNative, nativeToLittleEndian

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

--


[Issue 19892] Add CTFE support for std.bitmanip: nativeToBigEndian, bigEndianToNative, littleEndianToNative, nativeToLittleEndian

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

Nathan S.  changed:

   What|Removed |Added

 Blocks||13471


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=13471
[Issue 13471] CTFE glitch when executing std.digest.crc.crc32Of() and checking
the result with enforce(). (keyword: uninitialized variable)
--


[Issue 13471] CTFE glitch when executing std.digest.crc.crc32Of() and checking the result with enforce(). (keyword: uninitialized variable)

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

Nathan S.  changed:

   What|Removed |Added

 Depends on||19892


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=19892
[Issue 19892] Add CTFE support for std.bitmanip: nativeToBigEndian,
bigEndianToNative, littleEndianToNative, nativeToLittleEndian
--


[Issue 19892] New: Add CTFE support for std.bitmanip: nativeToBigEndian, bigEndianToNative, littleEndianToNative, nativeToLittleEndian

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

  Issue ID: 19892
   Summary: Add CTFE support for std.bitmanip: nativeToBigEndian,
bigEndianToNative, littleEndianToNative,
nativeToLittleEndian
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: n8sh.second...@hotmail.com

std.bitmanip: nativeToBigEndian, bigEndianToNative, littleEndianToNative,
nativeToLittleEndian aren't supported in CTFE which blocks the solution to
issue 13471.

--


[Issue 19891] New: Confusing error message for auto ref parameters with default values

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

  Issue ID: 19891
   Summary: Confusing error message for auto ref parameters with
default values
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: yshu...@gmail.com

void fun(R)(auto ref int a, auto ref R r = 1) {}

void main() {
fun(10, 2); // Error: cannot modify constant `1`
fun(10); // Error: `auto` can only be used as part of `auto ref` for
template function parameters
}

The error messages make sense in neither of the cases.

--


[Issue 13471] CTFE glitch when executing std.digest.crc.crc32Of() and checking the result with enforce(). (keyword: uninitialized variable)

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

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #2 from Dlang Bot  ---
@thewilsonator updated dlang/phobos pull request #6976 "Fix issue 13741: can't
use crc at CTFE" fixing this issue:

- Fix issue 13471: can't use crc at CTFE

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

--


[Issue 19890] ICE: Segmentation fault with negative array size

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

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #4 from Dlang Bot  ---
@ibuclaw created dlang/dmd pull request #9840 "fix Issue 19890 - ICE:
Segmentation fault with negative array size" fixing this issue:

- fix Issue 19890 - ICE: Segmentation fault with negative array size

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

--


[Issue 17793] [ICE] Internal error: ddmd/backend/cod1.c 3976 using simd.double4

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

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #9832 "Fix issue 17793 - ICE using simd.double4 as
array" was merged into stable:

- 579197d17c81f6aee49797301226cda9f762729e by سليمان السهمي  (Suleyman Sahmi):
  Fix issue 17793 - ICE using simd.double4 as array

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

--


[Issue 17793] [ICE] Internal error: ddmd/backend/cod1.c 3976 using simd.double4

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

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Dlang Bot  ---
@SSoulaimane updated dlang/dmd pull request #9832 "Fix issue 17793 - ICE using
simd.double4 as array" fixing this issue:

- Fix issue 17793 - ICE using simd.double4 as array

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

--


[Issue 19267] extern(C++) cast from interface to child class returns wrong pointer value

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

Suleyman Sahmi (سليمان السهمي)  changed:

   What|Removed |Added

 CC||sahmi.soulaim...@gmail.com

--- Comment #1 from Suleyman Sahmi (سليمان السهمي)  
---
This would require dynamic casting which means druntime must know about cpp
rtti.

--