www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12214] New: GIT HEAD: AA.length is not nothrow

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

           Summary: GIT HEAD: AA.length is not nothrow
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2014-02-20 20:04:06 PST ---
From: http://forum.dlang.org/thread/veafqhtptjakiewkwzme forum.dlang.org

Test case:

void main() pure nothrow
{
    int[int] aa;
    auto n = aa.length;
}

---
test.d(4): Error: '_aaLen' is not nothrow
test.d(1): Error: function 'D main' is nothrow yet may throw

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-02-20 20:11:52 PST ---
https://github.com/D-Programming-Language/dmd/pull/3305

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



--- Comment #2 from github-bugzilla puremagic.com 2014-02-21 09:04:09 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e5b7763a47c940bc870a27aff837debee688de51
fix Issue 12214 - AA.length is not nothrow

https://github.com/D-Programming-Language/dmd/commit/bda3bf3bddfc990a07a3fe83d9ca7e34161564d9
Merge pull request #3305 from 9rnsr/fix12214

[REG-head] Issue 12214 - AA.length is not nothrow

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


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 21 2014