char buffer resize appears broken on linux 1.162

William S. Lear William_member at pathlink.com
Wed Jul 5 07:05:07 PDT 2006


% cat t.d
void main() {
char[] buffer;
buffer.length = 0;
}
% dmd -v t.d
parse     t
semantic  t
semantic2 t
semantic3 t
code      t
generating code for function 'main'
gcc t.o -o t -m32 -lphobos -lpthread -lm
t.o(.gnu.linkonce.t_Dmain+0x1f): In function `_Dmain':
: undefined reference to `_d_arraysetlength2'
collect2: ld returned 1 exit status
--- errorlevel 1

If I change char[] to int[], it works.

Bill



More information about the Digitalmars-d-bugs mailing list