[Issue 12214] New: GIT HEAD: AA.length is not nothrow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 20 20:04:14 PST 2014


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 at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at 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: -------


More information about the Digitalmars-d-bugs mailing list