www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11253] New: std.algorithm.count is not nothrow

http://d.puremagic.com/issues/show_bug.cgi?id=11253

           Summary: std.algorithm.count is not nothrow
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-10-14 02:50:04 PDT ---
import std.algorithm: count;
void main() nothrow {
    [1, 2, 3].count([2, 3]);
}


dmd 2.064beta gives:

test.d(3): Error: 'std.algorithm.count!("a == b", int[], int[]).count' is not
nothrow
test.d(2): Error: function 'D main' is nothrow yet may throw

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 14 2013