[Issue 8369] New: try/finally block and float division by zero
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 10 10:23:30 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8369
Summary: try/finally block and float division by zero
Product: D
Version: D2
Platform: x86_64
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: lomereiter at gmail.com
--- Comment #0 from Artem Tarasov <lomereiter at gmail.com> 2012-07-10 10:23:29 PDT ---
The following code segfaults when I run it with "rdmd bug.d 0":
import std.stdio, std.conv;
float a, b = 0.0;
void main(string[] args) {
try {
a = to!float(args[1]);
} finally {
writeln(a / b);
}
}
--
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