← Back to index
|
Original Bugzilla link
Bug 741 – -O: char[].reverse and wchar[].reverse causes runtime segfaults
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2006-12-25T06:27:00Z
Last change time
2015-06-09T01:31:21Z
Keywords
wrong-code
Assigned to
dvdfrdmn
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2006-12-25T06:27:42Z
# # void main(){ # char[] a; # char[] r; # # a = "-\U000000A1\U00000901\U0000FFEE\U00010000\U000FFFFD_".dup; # r = a.reverse; # assert(r == "_\U000FFFFD\U00010000\U0000FFEE\U00000901\U000000A1-"); # } # test cases:
http://dstress.kuehne.cn/run/reverse_05.d
http://dstress.kuehne.cn/run/reverse_06.d
Comment #1
by dvdfrdmn — 2007-09-23T18:40:04Z
Fixed some time ago.