[Issue 7737] std.typecons.Typedef problem with immutable initialized in static this()

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7737

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
 Resolution|--- |INVALID

--- Comment #3 from berni44  ---
Meanwhile the first two examples do not compile anymore. IMHO because of this,
the last one should not compile too.

--


[Issue 17597] std.typecons.Typedef cannot be instantiated with void

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17597

berni44  changed:

   What|Removed |Added

 CC||bugzi...@d-ecke.de
   Severity|normal  |enhancement

--- Comment #1 from berni44  ---
IMHO void isn't considered a type (according to the docs) and there is not
supposed to work with Typedef, so I think, this is more an enhancement request
than a bug report.

--


[Issue 19951] Druntime command line arguments are poorly documented and hard to find

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19951

Basile-z  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 10233] [Tracker] Grammar issues

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233

Basile-z  changed:

   What|Removed |Added

 Depends on|19969   |19869


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=19869
[Issue 19869] `PrimaryExpression` allows incorrect forms of function literals
https://issues.dlang.org/show_bug.cgi?id=19969
[Issue 19969] Unhelpful error when attempting (incorrectly) to append to a
string
--


[Issue 19869] `PrimaryExpression` allows incorrect forms of function literals

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19869

Basile-z  changed:

   What|Removed |Added

 Blocks||10233


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=10233
[Issue 10233] [Tracker] Grammar issues
--


[Issue 19969] Unhelpful error when attempting (incorrectly) to append to a string

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19969

Basile-z  changed:

   What|Removed |Added

 Blocks|10233   |


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=10233
[Issue 10233] [Tracker] Grammar issues
--


[Issue 10233] [Tracker] Grammar issues

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233

Basile-z  changed:

   What|Removed |Added

 Depends on||19969


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=19969
[Issue 19969] Unhelpful error when attempting (incorrectly) to append to a
string
--


[Issue 19969] Unhelpful error when attempting (incorrectly) to append to a string

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19969

Basile-z  changed:

   What|Removed |Added

 Blocks||10233


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=10233
[Issue 10233] [Tracker] Grammar issues
--


[Issue 9937] CTFE floats don't overflow correctly

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9937

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #27 from Dlang Bot  ---
dlang/dmd pull request #10686 "Fix Issue 9937: CTFE floats don't overflow
correctly" was merged into master:

- ea47332fb00829eb5d234daa9f2c618d544a596b by Iain Buclaw:
  Fix Issue 9937: CTFE floats don't overflow correctly

  Adjusts original test to include new toPrec intrinsic

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

--


[Issue 2482] Spec does not reference about special x functions in TypeInfo_Struct

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2482

--- Comment #5 from Steven Schveighoffer  ---
Actually, may be good to elaborate on the points in the AA docs.

I found that defining a toHash function without const makes it skip the
function for xtoHash.

A note saying "Only the above signatures are guaranteed to work with AAs. If
you change the signature in some way, it may not work"

Defining opEquals without const makes it fail to be an AA key.

--


[Issue 2482] Spec does not reference about special x functions in TypeInfo_Struct

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2482

--- Comment #4 from Steven Schveighoffer  ---
So since this was opened (11 years ago!), the .sort property is gone. And AAs
have been adjusted to require only opEquals and toHash.

Not only that but the compiler has been adjusted to complain if you define one
but not the other.

See: https://dlang.org/spec/hash-map.html#using_struct_as_key

Which means if you don't use the right signature, it will complain anyway.

The only remaining thing that is an undisclosed issue is the TypeInfo methods
that use these items (i.e. .getHash .compare .equals). These are affected if
you define the right signature, and there will be no complaints if you don't
use them in an AA.

Perhaps here: https://dlang.org/phobos/object.html#.TypeInfo

You could put notes about custom functions for the three methods on structs
(classes are already required to override) and identify the "correct" signature
that is guaranteed to be used. And you may want to research what DMD does,
because I actually don't know the requirements.

--


[Issue 11695] std.net.curl https not thread-safe

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11695

brocolis  changed:

   What|Removed |Added

 CC||broco...@eml.cc

--- Comment #5 from brocolis  ---
'dmd bug.d -L-lssl' just works for me (unmodified code from 2015-07)

--


[Issue 9937] CTFE floats don't overflow correctly

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9937

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #26 from Dlang Bot  ---
@ibuclaw created dlang/dmd pull request #10686 "Fix Issue 9937: CTFE floats
don't overflow correctly" fixing this issue:

- Fix Issue 9937: CTFE floats don't overflow correctly

  Adjusts original test to include new toPrec intrinsic

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

--


[Issue 9937] CTFE floats don't overflow correctly

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9937

Iain Buclaw  changed:

   What|Removed |Added

 CC||ibuc...@gdcproject.org

--- Comment #25 from Iain Buclaw  ---
toPrec intrinsic implemented in compiler, and functions added to druntime.

https://github.com/dlang/dmd/pull/10654
https://github.com/dlang/druntime/pull/2864

--


[Issue 19322] A lot of memory is consumed and not freed to the system when Exception is formatted with stacktrace in debug

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19322

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #4 from Dlang Bot  ---
@kinke updated dlang/druntime pull request #2330 "Refactor ELF utils from
rt.backtrace.elf and rt.sections_elf_shared to core.elf" fixing this issue:

- Fix Issue 19322 (memory leak in backtrace generation with -g)

https://github.com/dlang/druntime/pull/2330

--


[Issue 20151] particular directory layout causes DMD to crash with an access violation

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20151

--- Comment #5 from Dlang Bot  ---
dlang/dmd pull request #10683 "Merge remote-tracking branch 'upstream/stable'
into merge_stable" was merged into master:

- cf3e6398eabf4a890fd9da4c52720c1274316255 by Boris Carvajal:
  Fix Issue 20151 - particular directory layout causes DMD to crash (#10675)

  Fix Issue 20151 - particular directory layout causes DMD to crash
  merged-on-behalf-of: Nicholas Wilson 

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

--


[Issue 10233] [Tracker] Grammar issues

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233
Issue 10233 depends on issue 13326, which changed state.

Issue 13326 Summary: Specification of CaseStatement doesn't fit empty case body
https://issues.dlang.org/show_bug.cgi?id=13326

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--


[Issue 13326] Specification of CaseStatement doesn't fit empty case body

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13326

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
 Resolution|--- |DUPLICATE

--- Comment #1 from berni44  ---


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

--


[Issue 9529] Switch Statement grammar bug for the chain of case statements

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9529

berni44  changed:

   What|Removed |Added

 CC||s.tr...@gmail.com

--- Comment #2 from berni44  ---
*** Issue 13326 has been marked as a duplicate of this issue. ***

--


[Issue 18294] std.path.dirName needs better documentation

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18294

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
 Resolution|--- |FIXED

--


[Issue 13923] Specify guarantees on associative array iteration order volatility

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13923

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
 Resolution|--- |INVALID

--- Comment #1 from berni44  ---
Answer to your questiones: You have no guarantees.

"In particular, in a foreach loop the order in which the elements are iterated
is typically unspecified."

from https://dlang.org/spec/hash-map.html

--


[Issue 20461] New: [dip1000] Passing stack allocated string to `assert` compiles

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20461

  Issue ID: 20461
   Summary: [dip1000] Passing stack allocated string to `assert`
compiles
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: critical
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: d...@me.com

This code compiles with DMD 2.089.0 with the `-dip1000` flag:

void main() @safe
{
char[10] buffer = "0123456789";
assert(false, buffer[]);
}

Running this code will obviously assert, but the assert message contains
garbage. The issue is that a stack allocated string has been passed to `assert`
and the assertion message is printed after the stack of `main` is gone. DIP1000
should be able to catch this.

--


[Issue 20460] Stack traces on OSX show wrong file / line

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20460

Jacob Carlborg  changed:

   What|Removed |Added

 CC||d...@me.com

--- Comment #1 from Jacob Carlborg  ---
Hasn't this already been reported?

Should probably be connected to the bounty:
https://www.flipcause.com/secure/cause_pdetails/NjI2NjQ=

--


[Issue 2482] Spec does not reference about special x functions in TypeInfo_Struct

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2482

berni44  changed:

   What|Removed |Added

 CC||bugzi...@d-ecke.de

--- Comment #3 from berni44  ---
I'm not sure at what place in the docs you'd like to see these functions
mentioned. So I was not able to decide, if this issue is still valid.

--


[Issue 10507] refCountedPayload return type is missing 'ref' in docs

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10507

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
  Component|dlang.org   |phobos
 Resolution|--- |FIXED

--


[Issue 7456] Purity strength not documented

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7456

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
 Resolution|--- |WORKSFORME

--- Comment #5 from berni44  ---
Seems to be documented meanwhile:

https://dlang.org/spec/function.html#pure-functions

--


[Issue 13663] Comparison of Tuples with floating point fields

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13663

berni44  changed:

   What|Removed |Added

 CC||qs.il.paperi...@gmail.com

--- Comment #6 from berni44  ---
*** Issue 18832 has been marked as a duplicate of this issue. ***

--


[Issue 18832] std.typecons.tuple comparison broken for floating point elements

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18832

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
 Resolution|--- |DUPLICATE

--- Comment #1 from berni44  ---


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

--


[Issue 20459] Runtime arg parsing should stop at '--'

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20459

ZombineDev  changed:

   What|Removed |Added

 CC||petar.p.ki...@gmail.com

--


[Issue 11947] std.typecons.Proxy incorrectly handles variadic member templates

2019-12-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11947

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
 Resolution|--- |WORKSFORME

--