[Issue 10602] Better error message for wrong template lambda given to function

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10602

Vladimir Panteleev  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=17477,
   ||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=9423

--


[Issue 17477] DMD error message for delegate with wrong attributes is very confusing

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17477

Vladimir Panteleev  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=10602

--


[Issue 9423] Missed conversion of lambda literal with ref argument

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9423

Vladimir Panteleev  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=10602

--


[Issue 17477] DMD error message for delegate with wrong attributes is very confusing

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17477

Vladimir Panteleev  changed:

   What|Removed |Added

   Hardware|x86_64  |All
 OS|Linux   |All

--


[Issue 10332] Dustmite should be distributed with the zipped release

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10332

Vladimir Panteleev  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
  Component|dmd |installer
 Resolution|--- |WORKSFORME

--- Comment #2 from Vladimir Panteleev  ---
dustmite has been in the zip files since 2.065.0, closing.

--


[Issue 5660] yield syntax sugar

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5660

Vladimir Panteleev  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #12 from Vladimir Panteleev  ---
I believe it has become an accepted fact that such constructs are done in
library code (either using std.concurrency, or Vibe's implementation of
fibers), and said implementations are generally satisfactory.

In either case, I believe that today enhancement requests to the language
itself need to be presented as a D Improvement Proposal:

https://github.com/dlang/DIPs

If you think this proposal still has merit today, please file a DIP. The
current DIP manager can assist you through the process.

--


[Issue 6856] Absence of in contract (precondition) on override of method that has one is badly designed

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6856

Vladimir Panteleev  changed:

   What|Removed |Added

   Keywords||pull

--


[Issue 10276] Nested structs with constructors get a context pointer even if they don't need one

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10276

Vladimir Panteleev  changed:

   What|Removed |Added

Summary|Nested structs get a|Nested structs with
   |context pointer even if |constructors get a context
   |they don't need one |pointer even if they don't
   ||need one
   Severity|normal  |enhancement

--


[Issue 14478] isInputRange should allow ranges of non-copyable elements

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14478

Vladimir Panteleev  changed:

   What|Removed |Added

Summary|isInputRange failed to  |isInputRange should allow
   |recognize some ranges   |ranges of non-copyable
   ||elements
   Severity|major   |enhancement

--


[Issue 15303] std.json: consider JSON5 support

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15303

Vladimir Panteleev  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
   Hardware|x86_64  |All
 Resolution|--- |WONTFIX
 OS|Linux   |All

--- Comment #2 from Vladimir Panteleev  ---
JSON5 has received lots of criticism from the technical community:

https://news.ycombinator.com/item?id=4031699
http://ilee.co.uk/json5-is-pointless-and-unimaginative/

This is probably better left to a third-party Dub package.

--


[Issue 17076] [scope] compiling identity function template with -dip1000 causes error

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17076

Vladimir Panteleev  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=8914

--


[Issue 8914] Wrong `escaping reference` error on returning static array

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8914

Vladimir Panteleev  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=17076

--- Comment #2 from Vladimir Panteleev  ---
Test case above no longer fails to compile since 2.074.0
(https://github.com/dlang/dmd/pull/6420), however, adding an indirection to the
parameter type still shows the error:

int*[2] f(int*[2] arr...)
{ return arr; }
// Error: returning `arr` escapes a reference to variadic parameter `arr`

--


[Issue 4104] No way to get notified about D runtime termination.

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4104

Vladimir Panteleev  changed:

   What|Removed |Added

   Keywords||patch

--


[Issue 4104] No way to get notified about D runtime termination.

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4104

Vladimir Panteleev  changed:

   What|Removed |Added

   Hardware|Other   |All
 OS|Linux   |All

--- Comment #3 from Vladimir Panteleev  ---
If this enhancement request is still actual today, please submit the patch as a
pull request; otherwise, it's unlikely anything will be done about it.

I'll leave this open because it doesn't seem too unlikely that another project
will require a similar addition, in which case having an existing issue could
be useful.

--


[Issue 16618] [REG2.055] Segmentation fault in DMD with cyclic alias this and unknown identifier

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16618

Vladimir Panteleev  changed:

   What|Removed |Added

   Hardware|x86 |All
Summary|Segmentation fault: 11  |[REG2.055] Segmentation
   ||fault in DMD with cyclic
   ||alias this and unknown
   ||identifier

--


[Issue 10256] Fix .deb file production

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10256

Vladimir Panteleev  changed:

   What|Removed |Added

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

--- Comment #1 from Vladimir Panteleev  ---
I believe our .deb files have received lots of fixes within the 4 years since
this issue was filed, and I don't think we're recently received any reports
about problems similar to the one in the original post in the linked thread.

If there are still any pertinent problems, please file a new issue for each.

--


[Issue 7833] [2.059 Beta] Changelog should clearly mention struct literal/opCmp/opEquals/toHash changes

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7833

Vladimir Panteleev  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
  Component|dmd |dlang.org
 Resolution|--- |WONTFIX

--- Comment #7 from Vladimir Panteleev  ---
I believe the train has left the station insofar updating the changelog goes.

I believe the spec pages have received lots of updates throughout the 5 years
since this issue was filed. If you believe they are still lacking in some
regard, please open a new issue (or, better yet, send a pull request, as you're
already accustomed with the subject.)

--


[Issue 11521] Collision of templates instantiated with different same-named locals

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11521

Vladimir Panteleev  changed:

   What|Removed |Added

   Keywords||wrong-code
Summary|Switch using same name  |Collision of templates
   |variable leads to Access|instantiated with different
   |Violation   |same-named locals
   Severity|normal  |critical

--- Comment #1 from Vladimir Panteleev  ---
Reduced:

// test.d /
void fun(alias x)()
{
assert(x == 1);
}

void main()
{
if (false)
{
int i = 0;
fun!i();
}

{
int i = 1;
fun!i();
}
}
///

The problem is that both fun!i instantiations have the same mangled name, even
though they refer to different variables and have different code.

The mangled name of local variables should have some sort of index in them.

--


[Issue 6843] Function to check whether std.conv.to will succeed

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6843

Vladimir Panteleev  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=6840

--


[Issue 6840] std.conv.maybeTo

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6840

Vladimir Panteleev  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=6843

--


[Issue 5033] Add explicit 'frame context' and 'this' type modifiers for callback functions

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5033

--- Comment #1 from Vladimir Panteleev  ---
I believe that this enhancement request is today possible to implement on top
of D's existing introspection / metaprogramming / code-generation features.

In either case, today enhancement requests to the language itself need to be
presented as a D Improvement Proposal:

https://github.com/dlang/DIPs

Please file a DIP if you think this proposal still has merit today. The current
DIP manager can assist you through the process.

--


[Issue 5033] Add explicit 'frame context' and 'this' type modifiers for callback functions

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5033

Vladimir Panteleev  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--


[Issue 7042] Allocation of 'creal' array with 'new' fails when linking without /noi switch

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7042

Vladimir Panteleev  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from Vladimir Panteleev  ---
(In reply to Andrej Mitrovic from comment #2)
> Perhaps we must always use /noi, in which case this is an invalid bug
> report.

It's certainly weird that the Microsoft linker defaults to case-insensitivity
even though C is case-sensitive, but it's no surprise if weird bugs arise from
said case-insensitivity.

In any case, I don't see why wrong link settings need to be DMD's burden.
Though it's not impossible that a workaround in DMD in theory might exist, the
primary cause of this problem is clearly user error.

--


[Issue 17604] Reject mutable fields initialized with reference types to data segment

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17604

Vladimir Panteleev  changed:

   What|Removed |Added

   Keywords||safe
   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=15612

--


[Issue 15612] Break immutability with default initialisers

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15612

Vladimir Panteleev  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=17604

--


[Issue 10364] Mac OS 10.8 program crash

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10364

Vladimir Panteleev  changed:

   What|Removed |Added

  Component|dmd |druntime

--- Comment #7 from Vladimir Panteleev  ---
I reproduced it with macOS 10.12 and DMD 2.074.

Changing daemon(0,0) to daemon(0,1) (so that stderr isn't redirected to
/dev/null) reveals a clue:

core.thread.ThreadError@src/core/thread.d(3002): Unable to load thread state

It looks like the daemon() call is interfering with Druntime's threading code.

--


[Issue 17673] regex(["\\\\\\\\|\\\\\"", "\"|$"]) - wrong whichPattern

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17673

Nikolay (unDEFER) Krivchenkov  changed:

   What|Removed |Added

 CC||dmitry.o...@gmail.com,
   ||unde...@gmail.com

--


[Issue 17673] New: regex(["\\\\\\\\|\\\\\"", "\"|$"]) - wrong whichPattern

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17673

  Issue ID: 17673
   Summary: regex(["|\"", "\"|$"]) - wrong
whichPattern
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: critical
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: unde...@gmail.com

regex returns whichPattern wrongly
The code demonstrating the problem:
https://dpaste.dzfl.pl/d7f94068608e

--


[Issue 13039] combinations

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13039

Seb  changed:

   What|Removed |Added

 CC||greensunn...@gmail.com

--- Comment #2 from Seb  ---
See also: https://github.com/dlang/phobos/pull/4026

It has been reworked to mir.combinatorics and works in @nogc:
http://docs.mir.dlang.io/latest/mir_combinatorics.html

--


[Issue 16431] rdmd runs dmd twice for single-files with no dependencies

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16431

Seb  changed:

   What|Removed |Added

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

--- Comment #5 from Seb  ---
PR was reverted :/

--


[Issue 13806] std.bitmanip.BitArray -- use of methods named init() messes up templates

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13806

RazvanN  changed:

   What|Removed |Added

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

--- Comment #7 from RazvanN  ---
This seems to have been solved. If there are other cases of init abuse, one can
always file a new bug report. Closing as fixed.

--


[Issue 14098] std.typecons.wrap should allow wrapping a struct

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14098

RazvanN  changed:

   What|Removed |Added

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

--- Comment #2 from RazvanN  ---
It looks like this have been merged. Closing

--


[Issue 17664] Deprecate implicit casting between shared and unshared

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17664

--- Comment #3 from Steven Schveighoffer  ---
Making a complete independent copy of a value is not sharing, it's copying.

shared doesn't care about the semantic meaning of your integer. It only cares
if multiple threads have access to the same memory in RAM. That's its only
goal.

Anything above that is on you to provide appropriate protections. In other
words, don't use int handle, use some UnshareableResource struct that protects
the handle internally from accidentally sharing.

--


[Issue 17664] Deprecate implicit casting between shared and unshared

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17664

--- Comment #2 from anonymous4  ---
The idea that sharing is opt out contradicts the idea behind shared qualifier.

--


[Issue 17671] std.format example is not compiles

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17671

Seb  changed:

   What|Removed |Added

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

--- Comment #1 from Seb  ---
Thanks a lot for reporting this issue.
We do have a pipeline in place, s.t. all runnable examples are automatically
checked:

http://dlang.org/blog/2017/03/08/editable-and-runnable-doc-examples-on-dlang-org

However, in this case the example changed from 2.074.0 to 2.075.0 as a new
feature ws introduced and the daily cron to update the backend didn't run yet.
I manually updated it now and everything works again:

Run the example: https://is.gd/b3UxtJ
See the change that introduced it for 2.075.0:
https://github.com/dlang/phobos/commit/cc8eff102f4ddcf15c4def1a5b87786c3040689d

--


[Issue 17672] Example from std.format throws exceptions

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17672

Seb  changed:

   What|Removed |Added

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

--- Comment #1 from Seb  ---
Thanks a lot for reporting this issue.
We do have a pipeline in place, s.t. all runnable examples are automatically
checked:

http://dlang.org/blog/2017/03/08/editable-and-runnable-doc-examples-on-dlang-org

However, in this case the example changed from 2.074.0 to 2.075.0 as a new
feature ws introduced and the daily cron to update the backend didn't run yet.
I manually updated it now and everything works again:

Run the example: https://is.gd/b3UxtJ
See the change that introduced it for 2.075.0:
https://github.com/dlang/phobos/commit/cc8eff102f4ddcf15c4def1a5b87786c3040689d

--


[Issue 17670] Std.bitmanip module has no (runnable) examples

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17670

Seb  changed:

   What|Removed |Added

 CC||greensunn...@gmail.com

--- Comment #1 from Seb  ---
FYI: There is a DScanner check has_public_example which is already partially
enabled. However, the blacklist of modules still exists.
For an example on how trimming down works:

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

--


[Issue 1998] std.bitarray should have setAll / opSliceAssign(bool) etc

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1998

RazvanN  changed:

   What|Removed |Added

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

--- Comment #2 from RazvanN  ---
PR : https://github.com/dlang/phobos/pull/5634

--


[Issue 16403] wrong "matches more than one template declaration" error with template specialization on alias parameters

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16403

Vladimir Panteleev  changed:

   What|Removed |Added

   Hardware|x86_64  |All
 OS|Linux   |All

--


[Issue 17672] New: Example from std.format throws exceptions

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17672

  Issue ID: 17672
   Summary: Example from std.format throws exceptions
   Product: D
   Version: D2
  Hardware: x86
OS: Windows
Status: NEW
  Severity: minor
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: al.iv.k...@gmail.com

Examples:

writeln(format("%,d", 1000)); // "1,000"
writeln(format("%,f", 1234567.891011)); // "1,234,567.891,011"
writeln(format("%,?d", '?', 1000)); // "1?000"
writeln(format("%,1d", 1000)); // "1,0,0,0"
writeln(format("%,*d", 4, -12345)); // "-1,2345"
writeln(format("%,*?d", 4, '_', -12345)); // "-1_2345"
writeln(format("%,6?d", '_', -12345678)); // "-12_345678"
assert(format("%12,3.3f", 1234.5678) == "   1,234.568", "'" ~
format("%12,3.3f", 1234.5678) ~ "'");

from https://dlang.org/phobos/std_format.html throws exceptions.

E.g.:
std.format.FormatException@/dlang/dmd/linux/bin64/../../src/phobos/std/format.d(1744):
integral

--


[Issue 17668] regex(q"<[^]>")

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17668

Nikolay (unDEFER) Krivchenkov  changed:

   What|Removed |Added

 CC||unde...@gmail.com

--


[Issue 17667] regex([r".", r"[\(\{[\]\}\)]"]);

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17667

Nikolay (unDEFER) Krivchenkov  changed:

   What|Removed |Added

 CC||unde...@gmail.com

--


[Issue 17671] New: std.format example is not compiles

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17671

  Issue ID: 17671
   Summary: std.format example is not compiles
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: critical
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: goldmax3...@gmail.com

The simple example (run on dlang site)

 writeln(format("%,d", 1000));

gives error:

std.format.FormatException@/dlang/dmd/linux/bin64/../../src/phobos/std/format.d(1744):
integral

--


[Issue 17670] New: Std.bitmanip module has no (runnable) examples

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17670

  Issue ID: 17670
   Summary: Std.bitmanip module has no (runnable) examples
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: minor
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: razvan.nitu1...@gmail.com

The vast majority of functions contained in std.bitmanip have no examples.

--


[Issue 17668] regex(q"<[^]>")

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17668

Dmitry Olshansky  changed:

   What|Removed |Added

 CC||dmitry.o...@gmail.com
   Assignee|nob...@puremagic.com|dmitry.o...@gmail.com

--


[Issue 17667] regex([r".", r"[\(\{[\]\}\)]"]);

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17667

Dmitry Olshansky  changed:

   What|Removed |Added

 CC||dmitry.o...@gmail.com
   Assignee|nob...@puremagic.com|dmitry.o...@gmail.com

--