Bug 12193 – GIT HEAD: opOpAssign ignored if this aliases to bool value

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-18T08:30:00Z
Last change time
2014-02-18T20:46:14Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
puneet

Comments

Comment #0 by puneet — 2014-02-18T08:30:07Z
Reduced testcase. Works with 2.064. struct Foo { bool bar; alias bar this; void opOpAssign(string op)(size_t x) { bar = false; } } void main() { Foo foo; foo <<= 1; }
Comment #1 by dlang-bugzilla — 2014-02-18T15:53:05Z
Comment #2 by k.hara.pg — 2014-02-18T19:45:30Z
Comment #3 by github-bugzilla — 2014-02-18T20:45:33Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0efdb40eb05920f370e10e15926f9b35f1698816 fix Issue 12193 - opOpAssign ignored if this aliases to bool value https://github.com/D-Programming-Language/dmd/commit/0d015451226aa429c129a5db46fc697f9342c03d Merge pull request #3282 from 9rnsr/fix12193 [REG] Issue 12193 - opOpAssign ignored if this aliases to bool value