[Issue 3139] New: compiler dies "Error: out of memory" with case range
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 6 00:21:15 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3139
Summary: compiler dies "Error: out of memory" with case range
Product: D
Version: 2.031
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: echochamber at gmail.com
% cat -n foo.d
1 import std.conv;
2 import std.stdio;
3
4 void main(string[] args)
5 {
6 int i = to!int(args[0]);
7
8 switch (i) {
9 case -9: .. case -1: // line 9
10 writefln("negative");
11 break;
12 case 0:
13 writefln("zero");
14 break;
15 default:
16 writefln("positive");
17 break;
18 }
19 }
% dmd foo.d
Error: out of memory
%
--
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