[Issue 5580] New: [64-bit] String switch statements broken in 64-bit mode
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 14 18:16:37 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5580
Summary: [64-bit] String switch statements broken in 64-bit
mode
Product: D
Version: D2
Platform: x86_64
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2011-02-14 18:14:05 PST ---
The following code hits the assert(0) when -release is disabled or segfaults
when -release is enabled when compiled on Linux in 64-bit mode:
void main(string[] args) {
auto str = "foo";
switch(str) {
case "foo":
break;
default:
assert(0);
}
}
--
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