char buffer resize appears broken on linux 1.162

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Jul 6 13:44:48 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William S  Lear schrieb am 2006-07-05:
> % 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.

I can't replicate this issue. Did you rebuild Phobos or are you trying
to use GDC's GPhobos in combination with DMD?

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFErXYVLK5blCcjpWoRAkwcAKCKlW4xE/6cw+jd/Dtn1BM7D2FzVgCfdcB+
6CNSGNtXbByVcsZ8ADxmioY=
=G7Ov
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list