[Issue 9822] New: cartesianProduct broken for array literals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 27 02:48:50 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9822
Summary: cartesianProduct broken for array literals
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: m.strashun at gmail.com
--- Comment #0 from Dicebot <m.strashun at gmail.com> 2013-03-27 02:48:49 PDT ---
Motivating code snippet:
-----
module test;
import std.algorithm, std.traits, std.stdio;
enum r1 = [1, 2, 3];
auto product = cartesianProduct(r1, r1);
void main()
{
writeln(product);
}
-----
Segmentation fault
-----
What is expected: either working code, or compile-time error.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list