[Issue 17905] New: byCodeUnit should allow access to underlying range

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17905

  Issue ID: 17905
   Summary: byCodeUnit should allow access to underlying range
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: issues.dl...@jmdavisprog.com

In general, when a range is wrapped in another range, you can't get access to
the original range, and that makes sense, because the resulting range is
transforming the underlying range such that it would usually cause problems if
you could get at the underlying range. However, there are cases where it's a
serious problem that you can't get at the underlying range. In particular, it
seriously hampers byCodeUnit.

The main purpose of byCodeUnit is to wrap narrow strings so that they're not
autodecoded, and they're treated as random access ranges of code units. Of
course, it also works on other ranges of charaters, but just returns those. And
if you're simply consuming the string, that's not a big deal. However, there
are plenty of cases where you want to feed a string into a function which would
normally trigger autodecoding, which you don't want, so you use byCodeUnit, but
you don't want the range's type to change (and it wouldn't need to save for
auto-decoding). So, you need to use byCodeUnit to treat the string as a range
of code units, but using byCodeUnit traps the string in another range.

So, I propose that we add a source property to byCodeUnit so that it's possible
to pass a string to a function which would normally auto-decode, have it treat
the string as a range of code units instead, and get whatever is left of the
string back out again from what the function returns. Then using byCodeUnit
doesn't mean that the string is permanently trapped.

--


[Issue 17853] Switch statement without braces only works with one case

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17853

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

https://github.com/dlang/dmd/commit/a629ebf9973c0860b20ecf9ba8791d74730f071b
fix issue 17853

https://github.com/dlang/dmd/commit/f78b548887321814ed80e6d55b47e9901502b415
Merge pull request #7203 from somzzz/switchCaseCascade

fix issue 17853 - Switch statement without braces only works with one case
merged-on-behalf-of: Andrei Alexandrescu 

--


[Issue 17853] Switch statement without braces only works with one case

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17853

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

   What|Removed |Added

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

--


[Issue 17904] New: Enhanced getopt result with passed arguments

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17904

  Issue ID: 17904
   Summary: Enhanced getopt result with passed arguments
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: an...@s-e-a-p.de

It would be nice if the result of getopt would have an attribute
"passedArguments" (or another name) which returns a tuple array of type
(string, bool). First value is the passed argument and the seccond value
indicates whether it was listed in the getopt definition.

Example:

auto helpInformation = getopt(
args,
"length",  ,// numeric
"file",,  // string
"verbose", ,   // flag
"color", "Information about this color", ); 


> ./app --file "abc" --anotherOption 15

helpInformation.passedArguments would now contain an array of 2 elements
[tuple("file", true), tuple("anotherOption", false)]


Use case:

If would like to enable following console command
./app set-config --optional-value1 (true|false) --optional-value2 (true-false)

- Either optional-value1 or optinal-value2 or both must be given. Otherwise
error
- Either true or false have to be specified. Otherwise error


I already found a solution but the passedArguments attribute would make the
coding much more readable.

--


[Issue 13532] std.regex performance (enums; regex vs ctRegex)

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13532

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

https://github.com/dlang/phobos/commit/a877469f07819fa26cd12248f11fd59cbea6563a
Fix issue 13532 - std.regex performance (enums; regex vs ctRegex)

https://github.com/dlang/phobos/commit/ad489989ec3fac9f65f4bb9d43d2254a0b718dc7
Merge pull request #5722 from DmitryOlshansky/regex-matcher-interfaces

std.regex: major internal redesign, also fixes issue 13532
merged-on-behalf-of: Andrei Alexandrescu 

--


[Issue 6244] Add powmod / modpow function to std.math

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6244

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

   What|Removed |Added

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

--


[Issue 6244] Add powmod / modpow function to std.math

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6244

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

https://github.com/dlang/phobos/commit/7781aaa7b1b50858c459372b291fd80092f5ef18
Fix Issue 6244 - Add powmod / modpow function to std.math

addmod for powmod

powm refactor

supports unsigned

added more tests

specify imported symbols

spaces around casts

review comments

https://github.com/dlang/phobos/commit/24cc67c1576c8da291d5812bc31279d8e871bdf2
Merge pull request #5761 from jercaianu/powmod

Fix Issue 6244 - Add powmod / modpow function to std.math
merged-on-behalf-of: Andrei Alexandrescu 

--


[Issue 17877] Missing library path in LDC settings

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17877

--- Comment #3 from Thomas  ---
Sorry for the delay...

Tested echoing the set vars during build with the following result:
WindowsSDKDir=
UCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\

So, only UCRTSdkDir would work here. Might be SDK version that differs.

Under VS Installer "Desktop development with C++" options I have the following
selected:
VC++ 2017 v141 toolset (x86,x64)
C++ profiling tools
Windows 10 SDK (10.0.15063.0) 
Visual C++ tools for CMake
Visual C++ ATL support

no more

--


[Issue 17596] dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17596

--- Comment #13 from Cy Schubert  ---
I'll give it a try.

--


[Issue 17748] extern(C) do nothing on struct methods

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748

--- Comment #6 from RazvanN  ---
Thank you all for the explanations. I'm on this.

--


[Issue 17748] extern(C) do nothing on struct methods

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748

--- Comment #5 from Simen Kjaeraas  ---
But the code is in D - the compiler isn't being asked to check any code that
isn't D code.

There are basically three options here:

1) Mangle S.foo as '_foo', and have it behave like an extern(C) function taking
an S as its first parameter.

2) Disallow the code, via a compilation error or at the very least a warning.

3) Ignore 'extern(C)' and generate code that behaves counter to the
programmer's expectations.

Note that none of these options require the compiler to check the correctness
of any code that is not D code.

Currently, as this bug report points out, the option chosen is 3). This is the
worst option, as it leads to an error at link-time, which might be in a dynamic
linker at some unspecified later point.

Since the compiler already knows that it won't mangle the name correctly,
implementing 2) should be little work, and provide great help to the poor
programmer who's bitten by this bug.

Since pragma(mangle) works on struct methods, implementing 1) should also not
be an insurmountable problem, but since C does not have methods, the calling
convention is basically unspecified, and something will need to be done in that
case. Not sure how much work this would be.

The current solution is basically the worst possible, and for no good reason.
The only way it could be worse is if it mangled the name as requested and still
used the D calling convention.

--


[Issue 17748] extern(C) do nothing on struct methods

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748

--- Comment #4 from ki...@gmx.net ---
(In reply to RazvanN from comment #3)
> In my opinion, this is the correct behavior, since it is not the
> compiler's job to check the correctness of a code which is not D code.

I strongly disagree. It *is* D code, otherwise it wouldn't be fed to the D
compiler. Doesn't matter whether it's defined in D or somewhere external, a
declaration in D suffices.

--


[Issue 17903] New: dmd leaves behind bad executable when linker fails

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17903

  Issue ID: 17903
   Summary: dmd leaves behind bad executable when linker fails
   Product: D
   Version: D2
  Hardware: x86
OS: Windows
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: johnnymar...@gmail.com

When compiling an executable with DMD, if the linker fails then DMD will still
create the target executable even though it is invalid and cannot run.

This breaks build tools that check the existence of the executable to know if
the executable needs to be rebuilt (virtually all build tools do this).  If you
have a linker error, the first time you run your build dmd will leave behind an
invalid executable.  If you run the build again it will think that the
executable has already been built and move on to the next part of the build.

One way to fix this would be to modify dmd to remove the executable if the
linker fails.  Another way would be to write the executable to a temporary
file, and then rename it to the target executable or delete it depending on if
the linker succeeded or failed.  This way, if the compiler gets interrupted, or
you lose power, or something happens that prevents dmd from cleaning up the
binary, you still won't have a target executable.

The following can be used to reproduce the issue:

forcelinkerror.d
-
import std.stdio, foo;
void main()
{
writeln("This exe can run (foofunc() = %s)", foofunc());
}
-


foo.d
-
module foo;
int foofunc() { return 42; }
-

Run the following to force a linker error
> dmd forcelinkerror.d

This will leave behind an invalid executable forcelinkerror.exe

--


[Issue 17748] extern(C) do nothing on struct methods

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748

RazvanN  changed:

   What|Removed |Added

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

--- Comment #3 from RazvanN  ---
The compiler tries to do the mangling for the specified linkage attribute and
if it cannot, it will just go with the default link attribute which is D. In my
opinion, this is the correct behavior, since it is not the compiler's job to
check the correctness of a code which is not D code.

--


[Issue 17415] std.conv.emplace does not forward arguments correctly

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17415

Andrei Alexandrescu  changed:

   What|Removed |Added

 CC||and...@erdani.com

--- Comment #3 from Andrei Alexandrescu  ---
S.init counts as an rvalue. We should treat it for all purposes the same as:

struct S
{
S init();
...
}

The way the value is produced does not entail a copy. Then the rvalue is moved
into the constructor of C, so the code is legit.

--


[Issue 17596] dmd d 2.073.2 and 2.074.1 interim generated dmd segfaults on FreeBSD 12-CURRENT

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17596

--- Comment #12 from alex.jercai...@gmail.com ---
Also, on FreeBSD 12 I could not build phobos or druntime with the most recent
compiler, due to segfaults while compiling barrier.d.

I could however build both druntime and phobos with the one here[1].

I think these problems are related.

[1] -
http://downloads.dlang.org/releases/2.x/2.076.1/dmd.2.076.1.freebsd-32.tar.xz

--


[Issue 17813] Selective import at function-scope cause link failures

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17813

Joakim  changed:

   What|Removed |Added

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

--- Comment #1 from Joakim  ---
Unable to reproduce, scoped the imports in

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

--


[Issue 17898] Segfault in compile with -deps and -unittest

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17898

--- Comment #2 from Joakim  ---
Tracked this regression down to a deps pull by bisecting dmd:

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

Reverting that commit fixes this issue and supposedly the similar deps bug
17601 too.

--


[Issue 16984] Make more modules runnable on dlang.org

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16984

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

https://github.com/dlang/phobos/commit/2e96d0654bb7146d40f71697c66a8fa6826440ee
Issue 16984 - Make std.math runnable

https://github.com/dlang/phobos/commit/c2d03bf75492c9141026fc58db865e5e0ca4d5e8
Issue 16984 - Make std.stdio runnable

https://github.com/dlang/phobos/commit/3cc63005e1bb05fdf78fd3017c1d9eb3c41705cc
Issue 16984 - Make std.traits runnable

https://github.com/dlang/phobos/commit/ff6c0f1dfc2405b4d0f92d08079d390fc4cc14a0
Issue 16984 - Make stdx.allocator.building_blocks.quantizer runnable

https://github.com/dlang/phobos/commit/5a20f69160443a17a0fbc1abe2e676b60e5485d2
Issue 16984 - Make stdx.allocator.building_blocks.free_list runnable

https://github.com/dlang/phobos/commit/d661120ff3bef457f1e9413965ebef3dd3f14fff
Fix Issue 16984 - Remove runnable blacklist

--


[Issue 17787] Add a BetterC predefined version so libraries can adapt

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17787

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

https://github.com/dlang/dlang.org/commit/30f3b8e062b0a497aa45368fdc35757851cbf0df
fix Issue 17787 - Add a BetterC predefined version so libraries can adapt

https://github.com/dlang/dlang.org/commit/0eaa9c4c303342a169defbd3c8cbc1d20eb35743
Merge pull request #1892 from WalterBright/D_betterC

--


[Issue 13829] std.uni.byCodePoint for strings has length

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13829

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

https://github.com/dlang/phobos/commit/d46bd62bcaa080ea1bfa19fc8d80359226f304a6
Fix issue 13829 - byCodePoint has length

https://github.com/dlang/phobos/commit/4cc17371b0994fe5aa494b800105dcae30ada674
Merge pull request #5733 from DmitryOlshansky/fix-issue-13829

--


[Issue 4582] distinct field names constraint for std.typecons.Tuple

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4582

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

https://github.com/dlang/phobos/commit/4e8fa84ba227b2ff4662b2e2fcdeca57074bc2fd
Fix Issue 4582 - distinct field names constraint for std.typecons.Tuple

https://github.com/dlang/phobos/commit/f24da9d895b6be51c0b1d196eb0c9d0e67f81dc1
Merge pull request #5725 from RazvanN7/Issue_4582

--


[Issue 15735] std.algorithm.iteration.splitter returns empty range

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15735

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

https://github.com/dlang/phobos/commit/c6ef7c3f5e5caafe5469af671a761e42c04ef7f9
Fix issue 15735: Correct splitter documentation when argument is an empty
range.

https://github.com/dlang/phobos/commit/181efe61db4d4cb33fee047c955b8bc00c2090f7
Merge pull request #5767 from jondegenhardt/issue-15735-splitter-emptyrange-doc

--


[Issue 17385] Too much commands

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17385

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

https://github.com/dlang/phobos/commit/30c280156c6d7f0550f42a3a4d64db5c0cced4e3
Issue 17385: Update findSplit doc so example compiles.

https://github.com/dlang/phobos/commit/28b8c9d46c5e824fd187bcf51354b70607ba2f59
Merge pull request #5752 from jondegenhardt/issue-17385-findSplit-doc

--


[Issue 17847] Properly sanitize seeds for Park–Miller engines

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17847

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

https://github.com/dlang/phobos/commit/fd2e5ba03c2c1304dd516a32e2659c3ed01c1936
Fix Issue 17847 - Properly sanitize seeds for Park–Miller engines

https://github.com/dlang/phobos/commit/218434f4b72bd4b8616214a615fe8cd433c6efe0
Merge pull request #5743 from n8sh/fix-random-lcg

--


[Issue 9591] std.typetuple.staticApplyMap

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9591

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

https://github.com/dlang/phobos/commit/f3cec8bdd38529848c5c1bed1f5a2a9817e07203
Fix issue 9591 - Allow Instantiate template to be public, give example

https://github.com/dlang/phobos/commit/efae08503d9a83d6abdf29270e4c363c393e53de
Merge pull request #5739 from schveiguy/fix9591

--


[Issue 17857] T.alignof ignores explicit align(N) type alignment

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17857

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

https://github.com/dlang/dmd/commit/9e3fad9ea3e955b10ec80439247e50fc9417f77d
T.alignof: Respect explicit align(N) type alignment

https://github.com/dlang/dmd/commit/30f0fe23961a194c9789ab32368ef50b4257c0dd
Merge pull request #7164 from kinke/alignof

--


[Issue 17375] colliding modules detected with binutils 2.28 linker and shared libraries

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17375

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

https://github.com/dlang/phobos/commit/3d36e434b84cf6ebd7341aaffe2b3b0b588a0262
Issue 17375 - use -fPIC by default for Phobos on Posix

https://github.com/dlang/phobos/commit/d400af081aad1dcb735170a99f9f8d1562788db9
Merge pull request #5586 from wilzbach/fpic-by-default

--


[Issue 17848] Example of floating point literals in the documentation is invalid

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17848

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

https://github.com/dlang/dlang.org/commit/90bce087c1671bec00cf1a2d2d2d6bc84ed3cc4e
fix issue 17848 - Example of floating point literals in the documentation is
invalid

https://github.com/dlang/dlang.org/commit/0b2a4a97797c2ec462dfbafa5248e7cc068d0e43
Merge pull request #1897 from aG0aep6G/patch-3

--


[Issue 17803] std.typecons.Tuple: opAssign should return ref Tuple

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17803

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

https://github.com/dlang/phobos/commit/ba2a1cee1711f38268ab65dde49defc5768a5377
Fix issue 17803 std.typecons.Tuple: opAssign should return ref Tuple

https://github.com/dlang/phobos/commit/ccadf2530bb143701537f81141cb7f03bdba7506
Merge pull request #5713 from Biotronic/Issue-8494

--


[Issue 11389] template arity does not work with function type

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11389

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

https://github.com/dlang/phobos/commit/b4aeee60503b0a20c15fea8d3d8dbaddfc60c017
fix issue 11389 - template arity does not work with function type

https://github.com/dlang/phobos/commit/762044e486a000db570e61834a6af7db07ca5fae
Merge pull request #5736 from BBasile/issue-11389

--


[Issue 3191] std.zlib.UnCompress errors if buffer is reused

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3191

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

https://github.com/dlang/phobos/commit/5cf20bd8773e0f746c74b19137a03d699cdfe28b
Fixed issues 3191 and 9505

https://github.com/dlang/phobos/commit/8e47bfc54c106b222835db3c3a37e81b52ab2f04
Merge pull request #5720 from kas-luthor/fix-zlib

--


[Issue 12470] std.array.replace does not work with inout(char)[]

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12470

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

https://github.com/dlang/phobos/commit/722ecd878cfde16a87d1f04e2ed3f5df08a9b78d
fix issue 12470 - std.array.replace does not work with inout(char)[]

https://github.com/dlang/phobos/commit/fc468500c90894919cec3783ce674f9b0f9b329e
Merge pull request #5735 from BBasile/issue-12470

--


[Issue 10444] writeln of a SIMD register

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10444

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

https://github.com/dlang/phobos/commit/e606879eac5db9aa66967965a096c3780f64bcd6
fix issue 10444 - writeln of a SIMD register

https://github.com/dlang/phobos/commit/bb1e6f9d508e7131d5c9ea84ae1955739e116608
Merge pull request #5730 from BBasile/issue-10444

--


[Issue 17787] Add a BetterC predefined version so libraries can adapt

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17787

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

https://github.com/dlang/dmd/commit/ca27ec4de2f7054aab3ae1fd5aae21639952bf26
Merge pull request #7132 from WalterBright/D_betterC

--


[Issue 17798] [2.076] "static foreach" not documented

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17798

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

https://github.com/dlang/dlang.org/commit/4caec8e66773560bef9e2f9df1f11c4b1e5378df
fix Issue 17798 - [2.076] "static foreach" not documented

https://github.com/dlang/dlang.org/commit/c190c0c29c3f1bd733936f94b69ec56548c33ce3
Merge pull request #1884 from tgehr/fix17798

--


[Issue 8779] std.zlib.UnCompress needs a way to detect end-of-stream

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8779

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

https://github.com/dlang/phobos/commit/fdbf5e4a5acabf55e02f360374b0a1600c367a55
std.zlib: Add UnCompress.empty

https://github.com/dlang/phobos/commit/8e47bfc54c106b222835db3c3a37e81b52ab2f04
Merge pull request #5720 from kas-luthor/fix-zlib

Fix zlib issues 3191, 9505 and 8779
merged-on-behalf-of: MetaLang 

--


[Issue 9505] std.zlib seem to be bugged

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9505

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

https://github.com/dlang/phobos/commit/5cf20bd8773e0f746c74b19137a03d699cdfe28b
Fixed issues 3191 and 9505

https://github.com/dlang/phobos/commit/8e47bfc54c106b222835db3c3a37e81b52ab2f04
Merge pull request #5720 from kas-luthor/fix-zlib

--


[Issue 17844] std.process.execute should allow not capturing stderr

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17844

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

https://github.com/dlang/phobos/commit/71adbeee85f4f97d5b3cf93bed28c0f4779e2d23
Fix Issue 17844 - std.process.execute should allow not capturing stderr

https://github.com/dlang/phobos/commit/5b5bc615cdebca8b909e70b0e33cde6ffe594376
Merge pull request #5742 from CyberShadow/pull-20170920-102045

--


[Issue 17649] CONTRIBUTING.md instructions failed (no ../druntime dir)

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17649

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

https://github.com/dlang/dlang.org/commit/a55738340dad6be3b24837d0e8983d5281700fe1
Fix Issue 17649 - CONTRIBUTING.md instructions failed (no ../druntime dir)

https://github.com/dlang/dlang.org/commit/6e5fdcd4a553681abeaa44d271896123cd941fb9
Merge pull request #1827 from wilzbach/fix-17649

--


[Issue 17370] [scope] Escaping scope pointers possible via struct GC allocation

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17370

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

https://github.com/dlang/dmd/commit/ae05c4c834ee9944f8fc0ed21a990335bcf36c81
fix Issue 17370 - [scope] Escaping scope pointers possible via struct GC
allocation

https://github.com/dlang/dmd/commit/59e801d060ee13705cbf3bf73e1b4bc8a12aa60d
Merge pull request #7101 from WalterBright/fix17370

--


[Issue 17829] core.stdc.errno does not work with -betterC

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17829

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

https://github.com/dlang/druntime/commit/04795c6488943e506150a1da2331cfbcfabb19b1
fix Issue 17829 - core.stdc.errno does not work with -betterC

https://github.com/dlang/druntime/commit/7326110718d88f84cc9f3f4cf86b12cc490fe24d
Merge pull request #1917 from WalterBright/fix17829

--


[Issue 6409] std.array.empty for associative arrays too

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6409

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

https://github.com/dlang/phobos/commit/bf1c17838214d596f6e388929ad7e22147ba09f8
Fix Issue 6409 - std.array.empty for associative arrays too

https://github.com/dlang/phobos/commit/5a9cbe9c30647f1acc9736adaf33eca63693e706
Merge pull request #5726 from RazvanN7/Issue_6409

--


[Issue 9958] "Integer FloatSuffix" is not a valid FloatLiteral

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9958

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

https://github.com/dlang/dlang.org/commit/43ed259763e6de3d20efa517886a99b9c49ca436
Fix Issue 9958: Integer FloatSuffix is not a valid FloatLiteral

https://github.com/dlang/dlang.org/commit/7a583d3adc55e4ff33b5172685c334252a2c6915
Merge pull request #1875 from JinShil/fix_9958

--


[Issue 13262] Cannot send certain shared data to another thread

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13262

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

https://github.com/dlang/phobos/commit/373babe48e186d2e9a54042bd35317c928b14bc3
fix issue 13262 - Ensure shared data can be sent and received via

https://github.com/dlang/phobos/commit/e2a16ccd4d78ce7288d9abfb253bf64bc6638198
Merge pull request #5694 from schveiguy/fix13262

--


[Issue 17883] Error: undefined identifier: Static if bodies depend on order of declarations

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17883

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

https://github.com/dlang/druntime/commit/e239f80fbee0c953ed50a039d140d0376647d7d4
Add workaround for issue 17883 in core.sys.linux.sys.mman

https://github.com/dlang/druntime/commit/58d573a593d6417928b9d710421b16802001a2c2
Merge pull request #1931 from ibuclaw/wkarnd17883

--


[Issue 17795] [scope] Scope errors not detected in ~= operation

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17795

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

https://github.com/dlang/dmd/commit/8b3b0a40f27234ac3aba0f747b8278ad7a5ab3ca
fix Issue 17795 - [scope] Scope errors not detected in ~= operation

--


[Issue 15096] std.array.array cannot be instantiated for pointers to ranges

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15096

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

https://github.com/dlang/phobos/commit/eadf51a841388ead61788483d9e5a0266b0c1479
Fix Issue 15096 -  std.array.array cannot be instantiated for pointers to
ranges

https://github.com/dlang/phobos/commit/ffee71058ec2daf699215b90dd9a851e8fb7467c
Merge pull request #5693 from RazvanN7/Issue_15096

--


[Issue 15831] IFTI voldemort type exploding bloat

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15831

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

https://github.com/dlang/dmd/commit/c272eb830597efcc8fe75c7e1c9791c512a08727
fix issue 15831: mangle back references for types and identifiers

--


[Issue 17856] __traits( identifier ) could use examples in on line documentation.

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17856

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

https://github.com/dlang/dlang.org/commit/c8cc3a58b1290523f2831e86b50fb1719cfdc0fc
Fix issue 17856: add example for __traits(identifier).

https://github.com/dlang/dlang.org/commit/d6aa91fb82741082ac321c5978121af75bcb88b7
Merge pull request #1899 from quickfur/issue17856

--


[Issue 17725] [scope] escape from nested function to enclosing local

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17725

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

https://github.com/dlang/dmd/commit/6189954a3ecf4d854b64bfb9875eba9a32e00e37
fix Issue 17725 - [scope] escape from nested function to enclosing local

https://github.com/dlang/dmd/commit/e201d830f51bd406c2a10617ef9f56dfeeda7725
Merge pull request #7129 from WalterBright/fix17725

--


[Issue 17790] [scope] Escaping pointer possible through array of aggregates

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17790

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

https://github.com/dlang/dmd/commit/66d203585f3f12dc4e3b56dc1178bebbedc1f1ba
fix Issue 17790 - [scope] Escaping pointer possible through array of aggregates

--


[Issue 10523] Don't call array op functions for short vector ops

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10523

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

https://github.com/dlang/dmd/commit/80513b41f815b4cc77fa279f63ea0feaad358041
convert array ops to library calls

--


[Issue 17782] The identifier delimiter of a delimited string can not begin with '_'

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17782

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

https://github.com/dlang/dmd/commit/f79bbbef2fa800c7ddecfec332e46b69a35ef2d2
fix issue 17782 - The identifier delimiter of a delimited string can not begin
with '_'

https://github.com/dlang/dmd/commit/1a9c34778bfc9c40029720c21079d5f652780a83
Merge pull request #7105 from nmtigor/issue_17782

--


[Issue 6004] std.range.unzip()

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6004

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

https://github.com/dlang/phobos/commit/c7dbebe0df36ca83352dba28c6e0177008bf84ad
Fix Issue 6004 - std.range.unzip()

https://github.com/dlang/phobos/commit/f5e80f19b882e96ed5108fa62d87530517992f00
Merge pull request #5701 from RazvanN7/Issue_6004

--


[Issue 16230] core.atomic.atomicLoad removes shared from aggregate types too eagerly

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16230

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

https://github.com/dlang/druntime/commit/7efd0fe5093ac75bf10065f1d3e7951abcc2b334
fix issue 16230 - core.atomic.atomicLoad removes shared from aggregate types
too eagerly

https://github.com/dlang/druntime/commit/c87a1b95803c0691b8b181a7c6f1efe8817554e8
add changelog entry for issue 16230

https://github.com/dlang/druntime/commit/eab4c63db305a3163666b2f01ff872335dc61dd4
fixup! add changelog entry for issue 16230

https://github.com/dlang/druntime/commit/02d9fc4ffb0f3e790e1840a11c8f3ef13dba68f4
Merge pull request #1605 from aG0aep6G/16230

--


[Issue 9183] Add a Nullable.get(x) overload

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9183

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

https://github.com/dlang/phobos/commit/1c071c2176b3ef4552f70e4fefc78f4ebe9d748c
Fix Issue 9183 - Add a Nullable.get(x) overload

https://github.com/dlang/phobos/commit/752fc0323a92d37056bb373cf8b91885a6406320
Merge pull request #5695 from RazvanN7/Issue_9183

--


[Issue 11259] __traits(isSame) fails on the result of __traits(parent) if parent is a package

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11259

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

https://github.com/dlang/dmd/commit/020c2982cd37a9270d606101dcaef69068566e3a
Fix Issue 11259:  __traits(isSame) fails on the result of __traits(parent) if
parent is a package

https://github.com/dlang/dmd/commit/81e0ca2d4be6eb3e475b1c843a33bea2e564efe0
Merge pull request #7095 from JinShil/parent_trait

--


[Issue 17568] [scope] addresses to fields can be escaped from scope method

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17568

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

https://github.com/dlang/dmd/commit/2cd4d61e6a15de1ec5af4df9caf1b4a9a7a33cd7
fix Issue 17568 - [scope] addresses to fields can be escaped from scope method

https://github.com/dlang/dmd/commit/d4cbb05d03f9d507833ce3c72e8b017a995e1069
Merge pull request #7022 from WalterBright/fix17568

--


[Issue 17581] Document behavior of -betterC

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17581

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

https://github.com/dlang/dlang.org/commit/c7b3c834273118264bc79c7784c6703196b42696
Fix Issue 17581 - Document behavior of -betterC

https://github.com/dlang/dlang.org/commit/af8fe998d76653a182424cdb2c49c67911c525ce
Merge pull request #1796 from wilzbach/fix-17581

--


[Issue 7490] BitArray should support slicing to extract a range

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7490

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |FIXED

--- Comment #3 from RazvanN  ---
The example in the original bug report now compiles and runs on git HEAD.
Closing as fixed.

--


[Issue 17684] [REG 2.062] `static alias this` bug or incomplete implementation?

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17684

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

https://github.com/dlang/dmd/commit/3fcf20a69f8f63df74e88bcde5e22d55721a1b68
Fix Issue 17684 - [REG 2.062] static alias this (Part 4)

https://github.com/dlang/dmd/commit/d01519ea9b52146afd4b1f27aaedd5b12240e414
Merge pull request #7195 from JinShil/static_alias_this_pt4

--


[Issue 17307] [REG2.072.0][ICE] TypeBasic::implicitConvTo: After error "anonymous struct can only be a part of an aggregate"

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17307

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

https://github.com/dlang/dmd/commit/0cd20c350681eee7e94483564d86f37a1d3d0b85
Fix Issue 17307 - [REG2.072.0][ICE] TypeBasic::implicitConvTo:

https://github.com/dlang/dmd/commit/bf5a755cb6a1d4b5552263c7961effab6f8c6ea0
Merge pull request #7199 from JinShil/fix_17307

--


[Issue 17893] [REG 2.076.1] contract in templatized final class require nothrow

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17893

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

https://github.com/dlang/dmd/commit/185fa004c8292214371b841b8f4fd2c5a6dfa2b8
Merge pull request #7208 from ibuclaw/issue17893

--