[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #18 from Jacob Carlborg --- (In reply to Jonathan M Davis from comment #15) > Agreed. I don't think that I said otherwise. What I was trying to point out > that is if you define opEquals, then if you use the type with an AA, then > you'r

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #17 from Jacob Carlborg --- (In reply to Kenji Hara from comment #6) > So you can just remove opCmp completely. For the struct > > struct TagIndex > { > uint tag, index; > } > > In 2.066 AA will use default member-wise equality and

[Issue 13196] Infer struct/class template args from constructor args

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13196 --- Comment #2 from Manu --- (In reply to Jakob Ovrum from comment #1) > This has been discussed before, and there is even a DIP for it. See #6082. > > It's not so easy to do in the general case: > > --- > struct S(T) > { > static if(is(T == bo

[Issue 13196] Infer struct/class template args from constructor args

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13196 Jakob Ovrum changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 6082] Constructors of templated types should be callable via IFTI

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6082 Jakob Ovrum changed: What|Removed |Added CC||turkey...@gmail.com --- Comment #2 from Jakob O

[Issue 13196] New: Infer struct/class template args from constructor args

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13196 Issue ID: 13196 Summary: Infer struct/class template args from constructor args Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 --- Comment #35 from Walter Bright --- (In reply to Vladimir Panteleev from comment #34) > 200ms and 0.2s are the same thing, > how can it be meaningful to sleep for 200ms but not for 0.2s? 0.2 cannot be represented exactly as a floating point value.

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 Walter Bright changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #16 from Jonathan M Davis --- How about this, the programmer has to declare opEquals if they define opCmp (in order to force the programmer to be aware of the problem and choose how opEquals should work), but we provide a way to tell the

[Issue 13195] Delete calls destructor but doesn't free

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13195 --- Comment #1 from Orvid King --- Ah, woops, forgot the link to the PR which has a bit more info on this: https://github.com/D-Programming-Language/druntime/pull/864 --

[Issue 13195] New: Delete calls destructor but doesn't free

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13195 Issue ID: 13195 Summary: Delete calls destructor but doesn't free Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: wrong-code Severi

[Issue 13022] std.complex lacks a function returning the squared modulus of a Complex

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13022 Element 126 changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #15 from Jonathan M Davis --- (In reply to hsteoh from comment #14) > But there's no reason to require toHash to be defined if the user never > tries to use it as an AA key, even if they define opEquals. Agreed. I don't think that I said

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #14 from hst...@quickfur.ath.cx --- I think the toHash issue is really only applicable if you try to use your type as an AA key. If you never use it as an AA key, there's no reason to require the user to define toHash just because they def

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 --- Comment #34 from Vladimir Panteleev --- (In reply to Sobirari Muhomori from comment #32) > It's meaningful to sleep for 200ms, but not for 0.2s. When you need a better > precision, you switch to the appropriate unit. How would you specify 1/60 > f

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #13 from Jonathan M Davis --- (In reply to hsteoh from comment #12) > Nobody is talking about calling opCmp or opEquals directly here. The issue > here is that == does not behave consistently with <, <=, >=, > when the user > defines opCm

[Issue 11435] -O optimization flag causes invalid 32 bit codegen

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11435 yebblies changed: What|Removed |Added Keywords||wrong-code CC|

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 yebblies changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

[Issue 11435] -O optimization flag causes invalid 32 bit codegen

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11435 --- Comment #8 from safety0ff.bugz --- I managed to work around this issue by modifying the following code from src/backend/cod1.c: (line ~3573) if (sz <= REGSIZE) { // Watch out for single byte quantities being up // against the e

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 Sobirari Muhomori changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #12 from hst...@quickfur.ath.cx --- (In reply to Jonathan M Davis from comment #11) [...] > And code really shouldn't be calling opEquals or opCmp directly > except under very rare circumstances. They're for generating overloaded > operato

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 --- Comment #31 from Jonathan M Davis --- Okay. I was going to say that allowing stuff like seconds(.033) would encourage a lack of precision even in cases where precision was required, and I really didn't lie that idea, but it looks like the lack of

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #11 from Jonathan M Davis --- (In reply to bearophile_hugs from comment #10) > (In reply to Jonathan M Davis from comment #9) > > I would not expect `a == b` to _ever_ be converted to `a.opCmp(b) == 0`. > > That's what opEquals is for. >

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #10 from bearophile_h...@eml.cc --- (In reply to Jonathan M Davis from comment #9) > I would not expect `a == b` to _ever_ be converted to `a.opCmp(b) == 0`. > That's what opEquals is for. Why? When opCmp returns zero it means ==. What's

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #9 from J

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 hst...@quickfur.ath.cx changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 --- Comment #30 from Jonathan M Davis --- *** Issue 13176 has been marked as a duplicate of this issue. *** --

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 Jonathan M Davis changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|DUPLICATE

[Issue 13176] core.time should allow conversions of floating-point values too

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13176 Jonathan M Davis changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 --- Comment #28 from Jonathan M Davis --- (In reply to Steven Schveighoffer from comment #24) > I think this situation would not arise. Code would still (I hope) be > comparing SysTime's or Durations, not floating point values. One just uses a > float

[Issue 13149] released libphobos2.a is build with PIC code

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13149 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to 2.066 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4c3ef92a238626c63fef5721ec82fa04acbed2e5 Merge pull request #2345

[Issue 10703] Front-end code removal "optimisation" with try/catch blocks produces wrong codegen

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10703 yebblies changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 11663] incorrect double increment in array assign expression

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11663 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #1 from yebblies

[Issue 11740] [64-bit] Struct with constructor incorrectly passed on stack to extern(C++) function

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11740 yebblies changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 12164] Function returning ptrdiff_t.min in 64-bit returning 0 when -O is set.

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12164 yebblies changed: What|Removed |Added Keywords||pull Hardware|All

[Issue 13158] "void has no value" in std.variant.Algebraic (affects D:YAML)

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13158 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2b6d7091f9407bc2fc855b050d15a0cb11ca572c Merge pull request #3793 from

[Issue 13089] Spurious 'is not nothrow' error on static array initialization

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13089 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/82a80a9ebbc30e894d9fe01ae55e6d8145aae24b Merge pull request #3738 from

[Issue 13182] extern(C++) classes cause crash when allocated on the stack with scope

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13182 --- Comment #9 from github-bugzi...@puremagic.com --- Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7602561892bf1722f82cdff8f66e7480364b4d82 Merge pull request #3797 from

[Issue 12057] [ICE], backend/cg87.c 925

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12057 --- Comment #8 from github-bugzi...@puremagic.com --- Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/118e1a8df6888d4f2f2d1900a68b1d516ff63b6f Merge pull request #3794 from

[Issue 13180] [REG2.066a] AA get returns const(char[]) instead of string

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13180 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b5befe0c19e3c09402358df0e2f71da64b0d7f6c Merge pull request #3801 from

[Issue 145] Can't refer to global scope after a cast

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=145 --- Comment #6 from github-bugzi...@puremagic.com --- Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6129d4b5baf84afd32ac3cafd35c60abad9c0bb6 Merge pull request #3802 from ib

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 --- Comment #27 from Steven Schveighoffer --- (In reply to Sobirari Muhomori from comment #25) > (In reply to Steven Schveighoffer from comment #22) > > > > I think this is an exaggeration. It works in nearly all cases, since the > > least significan

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 Kenji Hara changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 13179] AA key type TagIndex now requires equality rather than comparison

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13179 --- Comment #6 from Kenji Hara --- (In reply to Jacob Carlborg from comment #5) > opCmp was added because of a regression in 2.065.0 and now it's changed > again. So you can just remove opCmp completely. For the struct struct TagIndex { uint ta

[Issue 13181] install target broken

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13181 Kenji Hara changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 13171] std.algorithm.until(range, sentinel, OpenRight.no) doesn't propagate popping of sentinel to range

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13171 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|-

[Issue 13171] std.algorithm.until(range, sentinel, OpenRight.no) doesn't propagate popping of sentinel to range

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13171 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/a6da3ece0668b3dcbdb2f6bf15517a4cfa53a579 fix Issue 13171 - std.

[Issue 13190] Optimizer breaks comparison with zero

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13190 yebblies changed: What|Removed |Added Keywords||pull --- Comment #2 from yebblies --- https://gi

[Issue 13190] Optimizer breaks comparison with zero

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13190 --- Comment #1 from yebblies --- Quick fix is to disable the block in cgsched.c that has comment "make sure CFpsw is reliably set". Turns out CFpsw is _not_ reliably set. --

[Issue 13180] [REG2.066a] AA get returns const(char[]) instead of string

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13180 --- Comment #2 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/31d3eb7f191a6549d45e9e2f67afd82c22cd7399 fix Issue 13180 - AA get ret

[Issue 13194] ICE when static class members initialized to void

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13194 Kenji Hara changed: What|Removed |Added Keywords||ice, pull Status|NEW

[Issue 6725] core.time.dur should accept floating point

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6725 --- Comment #26 from Vladimir Panteleev --- (In reply to Sobirari Muhomori from comment #25) > That's an overengineered interface and should be done in your code. > Fractions of timeouts are practically indiscernible, nobody would need to > specify it

[Issue 145] Can't refer to global scope after a cast

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=145 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b4335c9d3eae1640d42e152894b2b9ec95d5828d Merge pull request #3802 from i

[Issue 13194] ICE when static class members initialized to void

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13194 Ketmar Dark changed: What|Removed |Added CC||ket...@ketmar.no-ip.org --- Comment #1 from Ke

[Issue 13180] [REG2.066a] AA get returns const(char[]) instead of string

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13180 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #1 from Kenji Hara --- https:

[Issue 13194] New: ICE when static class members initialized to void

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13194 Issue ID: 13194 Summary: ICE when static class members initialized to void Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal P

[Issue 13137] Cherry-picks for v2.066.0-b5

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13137 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #1 from yebblies

[Issue 13182] extern(C++) classes cause crash when allocated on the stack with scope

2014-07-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13182 --- Comment #8 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/d2328d90739f205e176603519ffe8e65a60247ef Fix Issue 13182 - extern(C++