[Issue 14713] New: dmd -ofpath/to/bar calls mkdir -p to create a file anywhere

2015-06-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14713

  Issue ID: 14713
   Summary: dmd -ofpath/to/bar calls mkdir -p to create a file
anywhere
   Product: D
   Version: D2
  Hardware: x86
OS: All
Status: NEW
  Severity: critical
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: timothee.co...@gmail.com

dmd -of/tmp/foo/bar/z01 main.d
creates /tmp/foo/bar/z01 even if parent dir doesn't exist (ie it must call the
equivalent of mkdir -p).
that's error prone and dangerous. just fail early if parent dir doesn't exist,
it's easy enough for user to create the dir if he really intended to as part of
his script. Or at least make it a non-default option.

Likewise, other flags need to be checked (eg -od etc)

--


[Issue 14711] New: [ABI] DMD doesn't return or pass small arrays in registers

2015-06-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14711

  Issue ID: 14711
   Summary: [ABI] DMD doesn't return or pass small arrays in
registers
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: major
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: ibuc...@gdcproject.org

Eg: https://github.com/D-Programming-Language/dmd/pull/4752/files

Where int[3] should be passed around in one 64bit and one 32bit register.

--


[Issue 14710] VC-built DMD crashes on templated variadic function IFTI

2015-06-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14710

--- Comment #7 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/7bf83a6ce5d1a83f52ce40b174c8ccfdcd6948a8
fix Issue 14710 - VC-built DMD crashes on templated variadic function IFTI

Add newdelete.c to Visual Studio project files

https://github.com/D-Programming-Language/dmd/commit/260495940349194b072c5786759ce07c1ee3972c
Merge pull request #4751 from CyberShadow/pull-20150618-124347

fix Issue 14710 - VC-built DMD crashes on templated variadic function IFTI

--


[Issue 14712] GIT HEAD : std.net.curl regressions

2015-06-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14712

--- Comment #1 from Temtaime temta...@gmail.com ---
*and opens a file in the text mode

--


[Issue 14712] New: GIT HEAD : std.net.curl regressions

2015-06-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14712

  Issue ID: 14712
   Summary: GIT HEAD : std.net.curl regressions
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: regression
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: temta...@gmail.com

download() no longer works: it seems that it saves ubyte[].to!string now
because i see [ 123, 44, 32, ... ] in downloaded file.
I've looked in the source and i don't know why now curl uses File.write and
opens a file in a binary mode.
It should opens the file in wb mode and use rawWrite function instead.

Also simple example:

import std.net.curl;

void main() {
download(``, ``);
}

no longer compiles with following error:
src\phobos\std\net\curl.d(292): Error: undefined identifier 'File'
src\phobos\std\net\curl.d(299): Error: template instance
std.net.curl.download!(FTP) error instantiating
main.d(5):instantiated from here: download!(AutoProtocol)
src\phobos\std\net\curl.d(299): Error: cannot return non-void from void
function

Seems that one forgot import std.stdio;

--


[Issue 2396] -O causes very long execution time on foreach loop of large array of structs

2015-06-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2396

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

https://github.com/D-Programming-Language/druntime/commit/a065244aed56693b5297241b87232f11571554a3
workaround Issue 2396 - O(N^2) backend optimizations

https://github.com/D-Programming-Language/druntime/commit/baface5e6b9d32cc42390774a2389d42f490fcba
Merge pull request #1275 from MartinNowak/workaround2396

workaround Issue 2396 - O(N^2) backend optimizations

--


[Issue 14436] Optimizer fails to remove comparison loop when comparing array against null

2015-06-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14436

Marc Schütz schue...@gmx.net changed:

   What|Removed |Added

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

--- Comment #8 from Marc Schütz schue...@gmx.net ---
Erroneously closed by the bot, reopening. Latest DMD still produces the
assembly in comment #3.

--


[Issue 14712] GIT HEAD : std.net.curl regressions

2015-06-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14712

--- Comment #2 from Ketmar Dark ket...@ketmar.no-ip.org ---
https://issues.dlang.org/show_bug.cgi?id=14707
;-)

--