[Issue 13452] New: VisualD keeps linking freshly built project

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13452

  Issue ID: 13452
   Summary: VisualD keeps linking freshly built project
   Product: D
   Version: D2
  Hardware: x86_64
OS: Windows
Status: NEW
  Severity: normal
  Priority: P1
 Component: VisualD
  Assignee: nob...@puremagic.com
  Reporter: orhunbir...@gmail.com

VisualD keeps linking freshly built project. After enabling Show why a target
is rebuilt, I get the following output.
Debug\ConsoleApp2.exe not up to date: link dependency file
C:\Development\D\ConsoleApp2\ConsoleApp2\Debug\ConsoleApp2.lnkdep does not
exist

I am using Dmd 2.066.0, VS 2013 with Visual D 0.3.39-beta3.

If I create an empty lnkdep file everything seems to be fine.

--


[Issue 12636] extern(C++) class that implements D interface segfaults

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12636

--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3ef3d64cd0b37e44f09a4652c086beb98e990e14
Fix Issue 12636 - extern(C++) class that implements D interface segfaults

https://github.com/D-Programming-Language/dmd/commit/dfad66748eac76fb55393505803910d650dbdf1b
Merge pull request #3967 from yebblies/issue12636

Issue 12636 - extern(C++) class that implements D interface segfaults

--


[Issue 12636] extern(C++) class that implements D interface segfaults

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12636

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

   What|Removed |Added

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

--


[Issue 4890] GC.collect() deadlocks multithreaded program.

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4890

Brad Roberts bra...@puremagic.com changed:

   What|Removed |Added

 CC||bra...@puremagic.com

--- Comment #28 from Brad Roberts bra...@puremagic.com ---
Might not be related, but for reference, bug 13416

--


[Issue 13344] rdmd --eval ignores flags

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13344

Nils nilsboss...@googlemail.com changed:

   What|Removed |Added

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

--- Comment #3 from Nils nilsboss...@googlemail.com ---
confirmed fixed

--


[Issue 3022] scope x = new Foo; does not allocate on stack if Foo has allocator

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3022

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

https://github.com/D-Programming-Language/dmd/commit/e7242b67874b5b9ac4c416d76a54ee7b037108be
Fix Issue 3022 - scope x = new Foo; does not allocate on stack if Foo has
allocator

If new only has one argument, then it must be the size.

https://github.com/D-Programming-Language/dmd/commit/9ba3bf09acb5d0133998781c506347f482497c0c
Merge pull request #3968 from yebblies/issue3022

Issue 3022 - scope x = new Foo; does not allocate on stack if Foo has allocator

--


[Issue 13453] New: Allow appending string literal to any width string

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13453

  Issue ID: 13453
   Summary: Allow appending string literal to any width string
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: yebbl...@gmail.com

With issue 7942 soon to be fixed, this code will no longer compile (previously
it generated wrong code).

void main()
{
wstring x;
x ~= hello;
}

The string literal can be converted to the correct width at compile time, and
should probably be supported.

--


[Issue 13454] New: Unit tests should be compiled in a module, where they are declared

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13454

  Issue ID: 13454
   Summary: Unit tests should be compiled in a module, where they
are declared
   Product: D
   Version: D1  D2
  Hardware: All
OS: All
Status: NEW
  Keywords: performance
  Severity: normal
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: dfj1es...@sneakemail.com

http://forum.dlang.org/post/luoc6f$2qcg$1...@digitalmars.com
There's no way to disable unittests compiled as part of templates, instantiated
from another library.


Error:
---
template A(T)
{
  int a;
  unittest{ f(); }
}

version(unittest) void f(){}
---
If this module is compiled without unittests, `f` function will not be
compiled, then if another module is compiled with unittests and instantiates
the template, the template's unittest is compiled and it will link with `f`
function, which wasn't compiled, so linking will fail? There will be no way to
compile the importing module with unittests.


Performance:
---
import core.stdc.stdio:puts;
template A(T)
{
shared int a;
unittest { puts(test); }
}

int main()
{
A!(int).a=0;
A!(long).a=0;
return 0;
}
---
test
test
---
The same test was executed twice (for each instance of a template). It's
questionable that duplicating tests for each instantiation of a template is
intended.

--


[Issue 9970] Document the definition and difference between storage class and type constructor

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9970

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--


[Issue 9828] Inconsistent lowering of 1-element tuple to its element

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9828

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--


[Issue 9724] Range predicates are not restrictive enough to justify assumptions made in Phobos code

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9724

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--


[Issue 7942] Appending different string types corrupts memory

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7942

--- Comment #16 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/07ad79d1965ec92b88f3da3296d2877dbca86aed
Fix Issue 7942 - Appending different string types corrupts memory

https://github.com/D-Programming-Language/dmd/commit/aad21a5fa4f73af8e11ea74493e579c9c66da8ba
Merge pull request #3966 from yebblies/issue7942

Issue 7942 - Appending different string types corrupts memory

--


[Issue 7942] Appending different string types corrupts memory

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7942

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

   What|Removed |Added

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

--


[Issue 6251] D spec should warn about using foreach_reverse on a delegate

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6251

hst...@quickfur.ath.cx changed:

   What|Removed |Added

   Keywords||pull

--- Comment #6 from hst...@quickfur.ath.cx ---
https://github.com/D-Programming-Language/dlang.org/pull/647

--


[Issue 13416] frequent auto-tester hangs in core.thread on freebsd 32 and 64

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13416

--- Comment #2 from Sobirari Muhomori dfj1es...@sneakemail.com ---
pthread_kill hangs? Shouldn't it be asynchronous?

--


[Issue 6251] D spec should warn about using foreach_reverse on a delegate

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6251

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

https://github.com/D-Programming-Language/dlang.org/commit/52c00a22c74e3bfb5be9cbd4c6549b9e8cbdc45f
Fix issue 6251: docs should warn about foreach_reverse over delegate.

https://github.com/D-Programming-Language/dlang.org/commit/1e29f79e6577a3d0f32fcc36f7de1a438286985d
Merge pull request #647 from quickfur/bug6251

Fix issue 6251: docs should warn about foreach_reverse over delegate.

--


[Issue 6251] D spec should warn about using foreach_reverse on a delegate

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6251

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

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--


[Issue 1553] foreach_reverse is allowed for delegates

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1553

--- Comment #18 from yebblies yebbl...@gmail.com ---
Pull to make it deprecated:

https://github.com/D-Programming-Language/dmd/pull/3971

--


[Issue 1553] foreach_reverse is allowed for delegates

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1553

--- Comment #19 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/59dda4abb8a147e59420feb8181824e6d97f2779
Issue 1553 - foreach_reverse is allowed for delegates

Warning - Deprecation

https://github.com/D-Programming-Language/dmd/commit/2fa5086134542566d4c38b6876865ffbe2b3c4e1
Merge pull request #3971 from yebblies/issue1553d

Issue 1553 - foreach_reverse is allowed for delegates

--


[Issue 13441] joiner asserts with only(x) separator

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13441

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/c506b03ec49556529fed3fc20efe34edb50363cf
fix Issue 13441 - joiner asserts with only(x) separator

https://github.com/D-Programming-Language/phobos/commit/fb88c5a83dc6cdbf51d07fe20341c173384b249e
Merge pull request #2499 from CyberShadow/pull-20140908-215454

fix Issue 13441 - joiner asserts with only(x) separator

--


[Issue 13441] joiner asserts with only(x) separator

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13441

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

   What|Removed |Added

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

--


[Issue 13455] New: Side effects of comma operator not evaluated for empty 'expression tuple' right hand side

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13455

  Issue ID: 13455
   Summary: Side effects of comma operator not evaluated for empty
'expression tuple' right hand side
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: normal
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: timon.g...@gmx.ch

The following code compiles and runs with failing assertions with DMD 2.066.0,
but it should compile and run with both assertions passing.

import std.stdio;
alias Seq(T...)=T;
int line;
void fun(T...)(T args,Seq!() x=(line=__LINE__,Seq!().init)){
writeln(args: ,args,\nline: ,line);
}
void main(){
fun(2,123); assert(line==__LINE__);
int i=0;
auto x=(i++,Seq!());
writeln(i);
assert(i==1);
}

--


[Issue 13419] code cleanup in std.uni: removing comma expressions

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13419

--- Comment #2 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/a965ffb5502f96b38f9698bfe00ce075b22c7d01
Merge pull request #2485 from schuetzm/ketmar-kill-the-commas

Issue 13419 - Remove comma expression in std.uni

--


[Issue 13456] New: GCStats does not appear in the web site documentation

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13456

  Issue ID: 13456
   Summary: GCStats does not appear in the web site documentation
   Product: D
   Version: D2
  Hardware: x86_64
OS: Windows
Status: NEW
  Severity: normal
  Priority: P1
 Component: websites
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@digitalmars.com

https://github.com/D-Programming-Language/druntime/blob/master/src/gc/stats.d

And neither does any of the callable GC functions.

https://dlang.org/phobos/core_memory.html

--


[Issue 11895] Add Strings Overview page to Phobos documentation

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11895

--- Comment #4 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/a62bed4c43a837372bef1c4d4e012d2d8309
Merge pull request #2471 from burner/issue11895

std.string doc issue11895

--


[Issue 11895] Add Strings Overview page to Phobos documentation

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11895

hst...@quickfur.ath.cx changed:

   What|Removed |Added

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

--


[Issue 8611] assumeSafeAppend pure nothrow?

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8611

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--


[Issue 8424] Compile time conversions of double/floats to strings

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8424

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--


[Issue 8177] Let the _type_ create the object; don't call _d_newclass directly!

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8177

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--- Comment #2 from wfunct...@hotmail.com ---
Oops, another correction, this time more minor:

There should be no 'typeid' for opDelete. It should simply say
typeof(instance).opDelete(instance).

(The goal here is to avoid virtual dispatch for opDelete() -- if the class
designer deems them necessary, he/she can implement the virtual dispatching
manually; for the compiler, only the compile-time type of the variable really
matters.)

--


[Issue 6405] @safe doesn't work with multidimensional typesafe variadic parameters

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6405

hst...@quickfur.ath.cx changed:

   What|Removed |Added

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

--- Comment #2 from hst...@quickfur.ath.cx ---
Works in git HEAD now. Please reopen if it's still not working for you.

--


[Issue 6405] @safe doesn't work with multidimensional typesafe variadic parameters

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6405

--- Comment #3 from hst...@quickfur.ath.cx ---
Test case PR: https://github.com/D-Programming-Language/dmd/pull/3974

--


[Issue 11903] Internal error: backend/cgcs.c 351

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11903

--- Comment #4 from hst...@quickfur.ath.cx ---
Reproduced error in git HEAD, only happens when compiling with -unittest.

--


[Issue 13457] New: float version of isIdentical fails

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13457

  Issue ID: 13457
   Summary: float version of isIdentical fails
   Product: D
   Version: D2
  Hardware: x86
OS: Mac OS X
Status: NEW
  Severity: blocker
  Priority: P1
 Component: DMD
  Assignee: nob...@puremagic.com
  Reporter: ilyayaroshe...@gmail.com

bool isIdentical(float x, float y) @trusted pure nothrow @nogc
{
// We're doing a bitwise comparison so the endianness is irrelevant.
int*   pxs = cast(int *)x;
int*   pys = cast(int *)y;
return pxs[0] == pys[0];
}

unittest {
float fn1 = NaN(0xABC);
float fn2 = NaN(0xABC);
assert(isIdentical(fn1, fn2)); //--- fails on Darwin_32
}

See #2509
https://github.com/D-Programming-Language/phobos/pull/2509

--


[Issue 13457] float version of isIdentical fails

2014-09-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13457

--- Comment #1 from Илья Ярошенко ilyayaroshe...@gmail.com ---
https://auto-tester.puremagic.com/pull.ghtml?projectid=1runid=1151368

--