Bug 1184 – assignment failure

Status
RESOLVED
Resolution
INVALID
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Linux
Creation time
2007-04-24T05:09:00Z
Last change time
2014-02-16T15:23:28Z
Assigned to
bugzilla
Creator
sheffmail

Comments

Comment #0 by sheffmail — 2007-04-24T05:09:14Z
The following code compiles successfully but when it runs it generates SIGSEGV: int main(char[][] args) { char[] a = "a"; a[0] = 'b'; } That bug only takes place in linux, in windows that code runs without fault.
Comment #1 by bugzilla — 2007-04-24T05:23:14Z
String literals are read-only. It is undefined behavior to attempt to write to them.