www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11826] New: An Access Violation in Phobos with cartesianProduct at compile-time

https://d.puremagic.com/issues/show_bug.cgi?id=11826

           Summary: An Access Violation in Phobos with cartesianProduct at
                    compile-time
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-12-26 09:52:08 PST ---
Compiled with DMD 2.065alpha:


import std.stdio: writeln;
import std.algorithm: cartesianProduct;
auto r = cartesianProduct([1, 2, 3], [10, 20, 30]); // object.Error: Access
Violation
void main() {
    //auto r = cartesianProduct([1, 2, 3], [10, 20, 30]); // OK
    r.writeln;
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 26 2013