[Issue 18735] all versions of find and canfind should identify usage of predicate

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18735

petrug  changed:

   What|Removed |Added

   Assignee|petru.guri...@gmail.com |nob...@puremagic.com

--


[Issue 18731] Link only with druntime for the runnable tests if Phobos isn't needed

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18731

petrug  changed:

   What|Removed |Added

   Assignee|petru.guri...@gmail.com |nob...@puremagic.com

--


[Issue 18735] all versions of find and canfind should identify usage of predicate

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18735

petrug  changed:

   What|Removed |Added

 CC||petru.guri...@gmail.com
   Assignee|nob...@puremagic.com|petru.guri...@gmail.com

--


[Issue 18731] Link only with druntime for the runnable tests if Phobos isn't needed

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18731

petrug  changed:

   What|Removed |Added

 CC||petru.guri...@gmail.com
   Assignee|nob...@puremagic.com|petru.guri...@gmail.com

--


[Issue 18728] std.math.fdim does not handle nan correctly

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18728

petrug  changed:

   What|Removed |Added

 CC||petru.guri...@gmail.com
   Assignee|nob...@puremagic.com|petru.guri...@gmail.com

--


[Issue 18727] std.math.fmin does not handle nan correctly

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18727

petrug  changed:

   What|Removed |Added

 CC||petru.guri...@gmail.com
   Assignee|nob...@puremagic.com|petru.guri...@gmail.com

--


[Issue 18786] AV program detects malware in windows download of DMD

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18786

greenify  changed:

   What|Removed |Added

 CC||greeen...@gmail.com

--- Comment #1 from greenify  ---
This is a false positive. Please notify your Antivirus vendor and report their
false detection there. Thanks!

BTW dmd-2.063 is more than four years old. Are you sure you need such an old
release?

--


[Issue 18787] New: ddoc crashes on static foreach

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18787

  Issue ID: 18787
   Summary: ddoc crashes on static foreach
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: snarwin+bugzi...@gmail.com

Attempting to generate documentation for the following code causes dmd to
segfault:

--- test.d
/**
 * The quick brown fox jumps over the lazy dog
 */
struct Test(Args...)
{
static foreach (T; Args) {}
}
---

$ dmd -D -main test.d
Segmentation fault
$ dmd --version
DMD64 D Compiler v2.079.1

--


[Issue 18786] New: AV program detects malware in windows download of DMD

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18786

  Issue ID: 18786
   Summary: AV program detects malware in windows download of DMD
   Product: D
   Version: D2
  Hardware: x86
OS: Windows
Status: NEW
  Severity: blocker
  Priority: P1
 Component: installer
  Assignee: nob...@puremagic.com
  Reporter: n...@suridx.com

Created attachment 1687
  --> https://issues.dlang.org/attachment.cgi?id=1687=edit
Output of AV program

When I ran DMD download (dmd-2.063.2) on the Virus total site I got the
following 2 detections

McAfee-GW-Edition

BehavesLike.Win32.Dropper.cc

VBA32

suspected of Trojan.Downloader.gen.h

Is this correct or false positives.  If correct can you direct me to a clean
version

Thanks

--


[Issue 15386] std.format.formatValue usage hangs

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15386

vladvi...@gmail.com changed:

   What|Removed |Added

   Assignee|vladvi...@gmail.com |nob...@puremagic.com

--


[Issue 18785] New: No way to get list of overloads for a given template

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18785

  Issue ID: 18785
   Summary: No way to get list of overloads for a given template
   Product: D
   Version: D2
  Hardware: x86
OS: Windows
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: simen.kja...@gmail.com

__traits(getOverloads) only works on regular functions, and do not include
templated overloads. Simply adding them to getOverloads's result would be a
breaking change. I therefore propose adding a new trait - getAllOverloads -
that returns all symbols in an overload set, be they types, templates,
functions, or otherwise.

--


[Issue 18742] std.regex: Using CodePointSet in AAs breaks if reference count changes

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18742

vladvi...@gmail.com changed:

   What|Removed |Added

 CC||vladvi...@gmail.com
   Assignee|nob...@puremagic.com|vladvi...@gmail.com

--


[Issue 15386] std.format.formatValue usage hangs

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15386

vladvi...@gmail.com changed:

   What|Removed |Added

 CC||vladvi...@gmail.com
   Assignee|nob...@puremagic.com|vladvi...@gmail.com

--


[Issue 18784] New: Segfault due to dmd codegen interfacing with C++

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18784

  Issue ID: 18784
   Summary: Segfault due to dmd codegen interfacing with C++
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: blocker
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: atila.ne...@gmail.com

The following two files when compiled and linked result in a segfault when
using dmd but not ldc2:

d.d:

extern(C++) {
struct Struct {
pragma(mangle, "_ZN6StructC1Ei") this(int);
pragma(mangle, "_ZN6StructC1EOS_") this(Struct*);

this(Struct other) {
this();
}
}
}

void main() {
auto s = Struct(Struct(7));
}


cpp.cpp:

#include 

struct Struct {
Struct(int);
Struct(Struct&&);
};


Struct::Struct(int) {
printf("Oops\n");
}

Struct::Struct(Struct&&) { }


To reproduce:

clang++ -g -c cpp.cpp
dmd -g d.d cpp.o -L-lstdc++   # ldc2 works fine
./d


Preliminary analysis:

Removing the printf from the C++ constructor prevents the segfault. In fact, it
seems that the return value of printf is used to deference a pointer. Without
the printf, rax has the value it had before and everything works.

The bug only manifests if a temporary is passed directly to the by-value D
constructor. Changing `auto s = Struct(Struct(7))` to:

auto tmp = Struct(7);
auto s = Struct(tmp);

Makes the bug disappear.

Using ldc2 works, suggesting that the issue is due to dmd's codegen, especially
given what happens to rax as stated above.

This issue is preventing "just works" C++ integration.

--


[Issue 11742] cannot inizialize void initialized static variable in static constructor.

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11742

RazvanN  changed:

   What|Removed |Added

 CC||razvan.nitu1...@gmail.com

--- Comment #1 from RazvanN  ---
PR : https://github.com/dlang/dmd/pull/8198

--


[Issue 7023] alias to overload set in template doesn't work

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7023

Simen Kjaeraas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||simen.kja...@gmail.com
 Resolution|--- |FIXED

--- Comment #3 from Simen Kjaeraas  ---
Works in 2.079.1, and according to comment 2 seems to have worked for 2.061.
Feel free to reopen if it's found to still be a problem.

--


[Issue 18782] Documentation error: ProtectionAttributes should say Visibility Attributes

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18782

ag0aep6g  changed:

   What|Removed |Added

   Keywords||pull
 CC||ag0ae...@gmail.com
   Hardware|x86 |All
 OS|Mac OS X|All
   Severity|enhancement |minor

--- Comment #1 from ag0aep6g  ---
https://github.com/dlang/dlang.org/pull/2350

--


[Issue 4074] function overloading fails

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4074

Simen Kjaeraas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||simen.kja...@gmail.com
 Resolution|--- |FIXED

--- Comment #1 from Simen Kjaeraas  ---
Cannot replicate this on 2.079.1 under Windows 10.

--


[Issue 18781] std.string.replace: RangeError when replacing with inconsistent string types

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18781

ag0aep6g  changed:

   What|Removed |Added

 CC||ag0ae...@gmail.com
   Hardware|x86_64  |All
 OS|Linux   |All

--- Comment #2 from ag0aep6g  ---
Related forum thread:
https://forum.dlang.org/post/xlcdoarfkpehymihk...@forum.dlang.org

If you make a bug report for a forum post, please leave a link to the bug in
the forum thread, so that we don't get duplicates.

--


[Issue 18781] std.string.replace: RangeError when replacing with inconsistent string types

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18781

ag0aep6g  changed:

   What|Removed |Added

 CC||joel...@gmail.com

--- Comment #1 from ag0aep6g  ---
*** Issue 18783 has been marked as a duplicate of this issue. ***

--


[Issue 18783] crash with replace

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18783

ag0aep6g  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||ag0ae...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #1 from ag0aep6g  ---
Looks like someone else was faster: issue 18781.

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

--


[Issue 18783] New: crash with replace

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18783

  Issue ID: 18783
   Summary: crash with replace
   Product: D
   Version: D2
  Hardware: x86_64
OS: Mac OS X
Status: NEW
  Severity: minor
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: joel...@gmail.com

void main() {
import std.conv : to;
import std.string : replace;

"”"d.replace("”", `"`); // crashes with a range error (notice the other
double quotes)
}

//(this is my first ever bug report)

--


[Issue 18776] Internal error: dmd/backend/symbol.c 1043

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18776

Ketmar Dark  changed:

   What|Removed |Added

 CC||ket...@ketmar.no-ip.org

--


[Issue 2855] __traits: no way to get overloads and information for non-instance methods

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2855

Simen Kjaeraas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||simen.kja...@gmail.com
 Resolution|--- |FIXED

--- Comment #7 from Simen Kjaeraas  ---
Current DMD handles all cases in this issue, and has for a long time.
getStaticFunctions is not in DMD, but can easily be implemented in a library.

--