October 10, 2004 test case only passes if compiler flag "-O" is used | ||||
---|---|---|---|---|
| ||||
system: linux dmd-0.102 code: # char[] array = new char[4]; # char letter = 'a'; # array[0..4]=letter; # assert(array[0]=='a'); # assert(array[1]=='a'); # assert(array[2]=='a'); # assert(array[3]=='a'); This code runs ok if the compiler flag "-O" is used but fails without. Based on Stewart Gordons report: <ci94i9$1352$2@digitaldaemon.com> / digitalmars.D.bugs:1849 test case: svn://svn.kuehne.cn/dstress/run/slice_03.d Thomas |
Copyright © 1999-2021 by the D Language Foundation