www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12193] New: GIT HEAD: opOpAssign ignored if this aliases to bool value

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12193

           Summary: GIT HEAD: opOpAssign ignored if this aliases to bool
                    value
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: puneet coverify.org


--- Comment #0 from Puneet Goel <puneet coverify.org> 2014-02-18 08:30:07 PST
---
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;
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12193


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com


--- Comment #1 from Vladimir Panteleev <thecybershadow gmail.com> 2014-02-19
01:53:05 EET ---
Introduced in https://github.com/D-Programming-Language/dmd/pull/3278

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12193


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2014-02-18 19:45:30 PST ---
https://github.com/D-Programming-Language/dmd/pull/3282

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12193



--- Comment #3 from github-bugzilla puremagic.com 2014-02-18 20:45:33 PST ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12193


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2014