← Back to index
|
Original Bugzilla link
Bug 1636 – DMD crashes with writef and ternary operator using strings
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-11-03T18:36:00Z
Last change time
2015-06-09T01:14:21Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
ddparnell
Comments
Comment #0
by ddparnell — 2007-11-03T18:36:11Z
The code below causes Windows DMD 2.007 to crash. import std.stdio; void main() { string A = ""; writefln("%s", (A.length == 0 ? "A" : "Z") ); }
Comment #1
by gide — 2009-01-09T07:46:24Z
It works for me on DMD v2.022.