[Issue 16418] dip25 wrong escaping reference to this

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16418

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

https://github.com/dlang/phobos/commit/21d65b6a23d8176c9479fb957f5d317916186de8
test typecons.Tuple.rename for sucessful no-ops, working around bug 16418

--


[Issue 16513] New: Speed up TemplateInstance.findExistingInstance, hash by mangling

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16513

  Issue ID: 16513
   Summary: Speed up TemplateInstance.findExistingInstance, hash
by mangling
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: c...@dawg.eu

We still have a few reports about extremely slow
TemplateInstance.findExistingInstance performance. What can be seen in profiles
is an excessive amount of TemplateInstance comparisons for lookups in the hash
table that eat ~20% of the compilation time.
Maybe we're producing an unsuited hash that isn't order dependent?
Or it's just an extreme number of instances with many arguments?

Still have to investigate further, but since issue 7469 got fixed we might now
hash by the mangling of the template (.getIdent) instead of doing an expensive
arrayObjectMatch on RootObjects (using a "virtual" match function).

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

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

https://github.com/dlang/dmd/commit/f899b4b59620e354b6ba0acfe843efb559202cd8
fix Issue 15907 - unjustified deprecation with getMember

https://github.com/dlang/dmd/commit/49cb97213303c902844b7189ced1cf8833214437
Merge pull request #6078 from MartinNowak/fix15907

https://github.com/dlang/dmd/commit/101d65993abc868490876883a17b1ba81c04fe19
fix Issue 15907 - unjustified deprecation with getMember

https://github.com/dlang/dmd/commit/6b285369a9b17216244dfdf8f38fbc48ed38dc53
Merge pull request #6111 from MartinNowak/fix15907

--


[Issue 16085] wrong visibility warning for overloaded alias symbol

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16085

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

https://github.com/dlang/dmd/commit/22dc48171eaa3ef43dbec3e6bab6ea7fcb839a37
fix Issue 16085 - wrong visibility warning for overloaded alias symbol

https://github.com/dlang/dmd/commit/8238ad782347330e0a822208c323a83d1d17ac64
Merge pull request #5847 from MartinNowak/fix16085

--


[Issue 16348] [REG 2.070.2] ICE with package visibility

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16348

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

https://github.com/dlang/dmd/commit/93c3dcf26f5c5ae612ccce044012d2b297fe46bf
fix Issue 16348 - ICE with package visibility

https://github.com/dlang/dmd/commit/d400dffec4f782ac9cc27f7e682a726042949f9e
Merge pull request #6014 from MartinNowak/fix16348

--


[Issue 15780] [REG2.069] CTFE foreach fails with tuple

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15780

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

https://github.com/dlang/dmd/commit/60390bd21a45479b6377751fef4be40159effe0a
fix Issue 15780 - [REG2.069] CTFE foreach fails with tuple

https://github.com/dlang/dmd/commit/4a108b3e8b9192dde15ffb513f34df7e3bc62d64
Merge pull request #6000 from MartinNowak/fix15780

--


[Issue 16512] New: Nullify the argument passed to allocator.dispose

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16512

  Issue ID: 16512
   Summary: Nullify the argument passed to allocator.dispose
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: yshu...@gmail.com

A good measure to prevent use-after-free.

--


[Issue 16511] Suspected Win64 release-mode code-gen bug

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16511

--- Comment #2 from Nick Sabalausky  ---
Got a report of the crash happening with both --build=debug (dub's default) and
--build=release. It only crashes with --build=release for me. So not really
sure what's going on. In my lib, I'm going to be working around it, but wanted
to post this here in case there is an underlying codegen thing.

--


[Issue 16511] Suspected Win64 release-mode code-gen bug

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16511

--- Comment #1 from Nick Sabalausky  ---
Just for the sake of reference, the original report/conversation is here:
https://github.com/Abscissa/libInputVisitor/issues/1

--


[Issue 16511] New: Suspected Win64 release-mode code-gen bug

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16511

  Issue ID: 16511
   Summary: Suspected Win64 release-mode code-gen bug
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: critical
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: cbkbbej...@mailinator.com

I've reveived a bug report on a lib of mine that I'm suspecting may be a 64-bit
release-mode code-gen bug, because it involves what, at least *appears*, to be
a fiber overflowing its stack *ONLY* on 64-bit in release mode. I could
understand a stack overlflow on 32-bit-only, but this seems backwards. And a
release-mode-only crash seems to suggest a code-gen bug as well.

Sorry I dont have a reduced case right now, but you can reproduce like this:

On a Win64 machine with DUB 1.0.0
:

- Download this Gist to a fresh directory:
https://gist.github.com/MrSmith33/c2f435937aefbc3eead25aa873363d84

- From that directory, run:

> dub --arch=x86_64 --build=release --verbose --compiler=dmd

It will build, run, and then crash.

Omitting *either* of --arch=x86_64 or --build=release will eliminate the crash.

--


[Issue 16510] New: Request: RSA digital signature validation in phobos

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16510

  Issue ID: 16510
   Summary: Request: RSA digital signature validation in phobos
   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

This is a request for adding RSA to std.digest. Especially I am interested in
the digital signature validation.

RSA is used for creating digital signatures for e.g. JSON Web Tokens. It would
be great if the algorithm could be added to Phobos.

--


[Issue 16509] New: DIP25 'return' attribute not documented for functions

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16509

  Issue ID: 16509
   Summary: DIP25 'return' attribute not documented for functions
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: major
  Priority: P1
 Component: dlang.org
  Assignee: nob...@puremagic.com
  Reporter: mathias.l...@sociomantic.com

The 'return' attribute is almost undocumented in `specs/function.dd`.
It was added to the grammar in https://github.com/dlang/dlang.org/pull/1415 but
no paragraph has been written to explain it.

One wishing to fix this should probably use http://wiki.dlang.org/DIP25 as
reference.

Marking as major since it's now enabled by default.

--


[Issue 16405] Trojan Win32/Ipac.B!cl detected on dmd-2.071.1.exe

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16405

Martin Nowak  changed:

   What|Removed |Added

 CC||c...@dawg.eu

--- Comment #6 from Martin Nowak  ---
(In reply to Sobirari Muhomori from comment #5)
> I uploaded the file at
> https://www.microsoft.com/en-us/security/portal/submission/submit.aspx for
> online scan with microsoft antivirus and it tells that the file is not
> detected.

How did you manage to upload the installer exe that is bigger than 10MB?

--


[Issue 16071] Source file path and module name should match exactly

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16071

Mathias Lang  changed:

   What|Removed |Added

 CC||mathias.l...@sociomantic.co
   ||m

--- Comment #2 from Mathias Lang  ---
Thanks for the rationale, and glad to hear you're planning to fix it in DMD!
We should probably document it at some point, but it's a minor point.

--


[Issue 16071] Source file path and module name should match exactly

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16071

Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution|--- |WONTFIX

--- Comment #1 from Walter Bright  ---
The purpose for it being overridden is so that one can temporarily "swap in" an
alternate version of a source file from another directory. This is very useful
in debugging thinks like Phobos. It's a feature not a bug.

I plan to fix dmd so that its imports match its file structure, for the reasons
you mentioned.

Anyhow, this is working as designed, and is a feature.

--


[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2016-09-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243

--- Comment #12 from Jacob Carlborg  ---
I've been using Clang for ages now and it passes the test suite, at least for
64bit. I'm running Apple LLVM version 7.3.0 (clang-703.0.31)

--