www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11930] New: Github regression -- Alias this not considered in is(T unused: U) matching

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

           Summary: Github regression -- Alias this not considered in is(T
                    unused: U) matching
           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-01-15 05:00:43 PST
---
Seems to have crept in with pull #3066.

class BarObj {}
struct Bar {
  BarObj _obj;
  alias _obj this;
}
BarObj getBarObj(T)(T t) {
  static if(is(T unused: BarObj)) return t;
  else static assert(false, "Can not get BarObj from " ~ T.stringof);
}
void main() {
  Bar b;
  getBarObj(b);
}

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


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-01-15 09:43:54 PST ---
https://github.com/D-Programming-Language/dmd/pull/3105

It has been caused by fixing issue 11875.

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



--- Comment #2 from Puneet Goel <puneet coverify.org> 2014-01-15 09:54:13 PST
---
(In reply to comment #1)
 https://github.com/D-Programming-Language/dmd/pull/3105

Works for me. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11930



--- Comment #3 from github-bugzilla puremagic.com 2014-01-15 19:27:08 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a58b3735f6a5cf071605e6f2606e7f1be3d6c38f
Issue 11930 - Alias this not considered in is(T unused: U) matching

https://github.com/D-Programming-Language/dmd/commit/7ecbbce5fdbe36db303ac21b26aee7a226657488
Merge pull request #3105 from 9rnsr/fix11930

[REG2.065a] Issue 11930 - Alias this not considered in is(T unused: U) matching

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


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: -------
Jan 15 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11930



--- Comment #4 from github-bugzilla puremagic.com 2014-01-22 18:18:53 PST ---
Commit pushed to release at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/287a7d107df20169b256b432ac9e048fde73e1fa
Merge pull request #3105 from 9rnsr/fix11930

[REG2.065a] Issue 11930 - Alias this not considered in is(T unused: U) matching

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