[Issue 14343] Postfix increment doesn't work on structs with immutable member

2015-06-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14343

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

https://github.com/D-Programming-Language/dmd/commit/30219cc6a1a647eb39e033342fa29a28a4da30fe
fix Issue 14343 - Postfix increment doesn't work on structs with immutable
member

https://github.com/D-Programming-Language/dmd/commit/9ea13cfb5cd904b0586b0209e70bec484e16fef6
Merge pull request #4522 from 9rnsr/fix14343

--


[Issue 14343] Postfix increment doesn't work on structs with immutable member

2015-05-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14343

Vladimir Panteleev thecybersha...@gmail.com changed:

   What|Removed |Added

 CC||svv1...@hotmail.com

--- Comment #4 from Vladimir Panteleev thecybersha...@gmail.com ---
*** Issue 14589 has been marked as a duplicate of this issue. ***

--


[Issue 14343] Postfix increment doesn't work on structs with immutable member

2015-03-31 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14343

--- Comment #3 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/30219cc6a1a647eb39e033342fa29a28a4da30fe
fix Issue 14343 - Postfix increment doesn't work on structs with immutable
member

https://github.com/D-Programming-Language/dmd/commit/9ea13cfb5cd904b0586b0209e70bec484e16fef6
Merge pull request #4522 from 9rnsr/fix14343

Issue 14343 - Postfix increment doesn't work on structs with immutable member

--


[Issue 14343] Postfix increment doesn't work on structs with immutable member

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14343

Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull, rejects-valid
   Hardware|x86 |All

--- Comment #2 from Kenji Hara k.hara...@gmail.com ---
https://github.com/D-Programming-Language/dmd/pull/4522

--


[Issue 14343] Postfix increment doesn't work on structs with immutable member

2015-03-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14343

Nicolas Sicard dran...@gmail.com changed:

   What|Removed |Added

 OS|Mac OS X|All
   Severity|enhancement |normal

--


[Issue 14343] Postfix increment doesn't work on structs with immutable member

2015-03-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14343

--- Comment #1 from Nicolas Sicard dran...@gmail.com ---
The problem doesn't show with the old operator overloading methods:

struct S
{
int i;
immutable(Object) o;

void opAddAssign(int j) { i += j; }
S opPostInc() { ++i; return this; }
void opAssign(S other) {}
}

unittest
{
S s;
++s;
assert(s.i == 1);
s++;
assert(s.i == 2);
}

--