[Issue 14859] static declared array with more than 16MB size should be allowed in struct and class declaration

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14859

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

https://github.com/dlang/dmd/commit/07855a2f94e216b65a342dc06a7d6f1d6bcafb8f
reboot #6081: Fix issue 14859 - 16MiB size limit for static array

https://github.com/dlang/dmd/commit/14ba1f62e7f1be6668feddd14d20de4837875585
Merge pull request #6503 from WalterBright/fix14859

reboot #6081: Fix issue 14859 - 16MiB size limit for static array

--


[Issue 17175] New: make predefined version identifiers case insensitive

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17175

  Issue ID: 17175
   Summary: make predefined version identifiers case insensitive
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: b2.t...@gmx.com

to avoid bugs such as 

version(Linux){} else {}

which can be hard to track depending on the version-relative-statements.

--


[Issue 17111] DMD accepts switch statement with non-const case variables

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17111

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

https://github.com/dlang/dmd/commit/84fcc60ae769015e5a2acfbc73881e7808799e48
Fix issue 17111 - More robust detection of variables used as case exp.

https://github.com/dlang/dmd/commit/e15fb01c75e09934c4a89098062df605d9e5427f
Merge pull request #6477 from LemonBoy/b17111

Fix issue 17111 - More robust detection of variables used as case exp.

--


[Issue 15676] The compiler does not preserve @disable while generating .di files

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15676

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

https://github.com/dlang/dmd/commit/b2aa1ead04afb58e35513bfda439614125c656d4
Fix issue 15676 - Don't omit the attributes for the postblit constructor

https://github.com/dlang/dmd/commit/1205ca40e87b11d4a5f4a6e09b2a16eb8c3956e9
Merge pull request #6463 from LemonBoy/b15676

Fix issue 15676 - Don't omit the attributes for the postblit constructor

--


[Issue 15676] The compiler does not preserve @disable while generating .di files

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15676

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

   What|Removed |Added

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

--


[Issue 15428] __traits(compiles, super()) cause error "multiple constructor calls" later

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15428

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

https://github.com/dlang/dmd/commit/d23913c8971766a461e2a973dd9c7fccbad90793
Fix issue 15428 - Properly detach the temporary scope for compiles()

https://github.com/dlang/dmd/commit/0689490b0f40d2cfbf9492925fde28f1a3b2e312
Merge pull request #6462 from LemonBoy/b15428

Fix issue 15428 - Properly detach the temporary scope for compiles()

--


[Issue 15428] __traits(compiles, super()) cause error "multiple constructor calls" later

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15428

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

   What|Removed |Added

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

--


[Issue 17088] Access Violation on membership test with shared AA

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17088

savar...@asu.edu changed:

   What|Removed |Added

 CC||savar...@asu.edu

--- Comment #1 from savar...@asu.edu ---
I was able to replicate this bug on Arch Linux (64bit), dmd v2.073.0.
I get a segfault whenever I run this code:

void main() {
shared int[int] ints = [6: 8];
auto bla = (6 in ints);
}

However, when I compile and run it with ldc 1:1.0.0-1 I get 0 segfaults
and it runs correctly.


When I separated the declaration and the assignment like below
it worked in both compilers. 

void main() {
shared int[int] ints;
ints[6] = 8;
auto bla = (6 in ints);
}

--


[Issue 17143] [REG2.072.0] Declaration is already defined on global enum = tuple(...).expand declaration

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17143

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

https://github.com/dlang/dmd/commit/555a9a1f5e105b6e815b0a54218de04e36289e38
Fix Issue 17143 - [REG2.072.0] Declaration is already defined on global enum =
tuple(...).expand declaration

https://github.com/dlang/dmd/commit/093a53aa46e41da58525cc556e071c1ae3d46c84
Merge pull request #6517 from epi/fix-17143

--


[Issue 17168] Shift left operator causes segfault when compiling with -O flag

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17168

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

   What|Removed |Added

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

--


[Issue 17168] Shift left operator causes segfault when compiling with -O flag

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17168

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

https://github.com/dlang/dmd/commit/dec45d735143737b499f9ce105b74b13b71f3a73
fix Issue 17168

https://github.com/dlang/dmd/commit/7b48c5b05b735182376e6bbd3382afef6072cec8
Merge pull request #6529 from UplinkCoder/fix_elshl

fix Issue 17168 - refactor elshl

--


[Issue 4682] [CTFE] Run-time Vs Compile-time of int.min % -1

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4682

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

https://github.com/dlang/dmd/commit/a4cedfa2a50fdf81e0b67a7acdbb2d872e88
add test case for Issue 4682

--


[Issue 17155] [REG2.071.0] Link failure with nested map

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17155

--- Comment #1 from Vladimir Panteleev  ---
Reduced:

/// lib.d ///
template unaryFun(alias fun)
{
alias unaryFun = fun;
}

struct MapResult(alias fun)
{
void front()
{
fun(string.init);
}
}

template map(fun...)
{
auto map(string[])
{
alias _fun = unaryFun!fun;
assert(!is(typeof(_fun(string.init;
return MapResult!(_fun)();
}
}

struct Map2Result(Range)
{
Range _input;
}

auto map2(Range)(Range)
{
return Map2Result!Range();
}

struct FilterResult()
{
string front;
}

auto dirEntries()
{
return FilterResult!().init;
}
/// test.d //
import lib;

version (bug)
auto x (T) (T mask) { return dirEntries().map2; }
else
auto x(string mask) { return dirEntries().map2; }

void main()
{
string[] files;
files.map!(mask => x(mask));
}

// test.sh //
dmd -lib -oflib.a lib.d

dmd  test lib.a # OK

dmd -version=bug test lib.a # link error
/


Output:

test.o: In function
`_D3lib56__T10Map2ResultTS3lib18__T12FilterResultZ12FilterResultZ10Map2Result9__xtoHashFNbNeKxS3lib56__T10Map2ResultTS3lib18__T12FilterResultZ12FilterResultZ10Map2ResultZm':
test.d:(.text._D3lib56__T10Map2ResultTS3lib18__T12FilterResultZ12FilterResultZ10Map2Result9__xtoHashFNbNeKxS3lib56__T10Map2ResultTS3lib18__T12FilterResultZ12FilterResultZ10Map2ResultZm+0x14):
undefined reference to
`_D49TypeInfo_xS3lib18__T12FilterResultZ12FilterResult6__initZ'
test.d:(.text._D3lib56__T10Map2ResultTS3lib18__T12FilterResultZ12FilterResultZ10Map2Result9__xtoHashFNbNeKxS3lib56__T10Map2ResultTS3lib18__T12FilterResultZ12FilterResultZ10Map2ResultZm+0x1b):
undefined reference to
`_D49TypeInfo_xS3lib18__T12FilterResultZ12FilterResult6__initZ'
collect2: error: ld returned 1 exit status

This is still a regression in 2.071.0, however, as with issue 15985, Digger's
bisection doesn't seem to point to anything useful.

--


[Issue 17155] [REG2.071.0] Link failure with nested map

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17155

--- Comment #2 from Vladimir Panteleev  ---
(In reply to Vladimir Panteleev from comment #1)
> This is still a regression in 2.071.0, however, as with issue 15985,
> Digger's bisection doesn't seem to point to anything useful.

OK, I got Digger to bisect the stable branch properly.

Introduced in https://github.com/D-Programming-Language/dmd/pull/4995.

--


[Issue 15985] [REG2.068/2.069] Code doesn't link unless compiled with -debug

2017-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15985

--- Comment #2 from Vladimir Panteleev  ---
(In reply to Vladimir Panteleev from comment #0)
> Bisection attempts point towards master/stable branch merges (i.e. nothing
> useful).
> 
> It is probably a latent heisenbug triggered by other changes.

Sorry, that was wrong. (Digger could not bisect changes in the stable branch
properly)

Introduced in https://github.com/D-Programming-Language/dmd/pull/4944.

--