Bug on dmd or gdc ?
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 28 01:16:36 PDT 2014
Domingo Alvarez Duarte:
> Based on a question about manually allocated structures with
> payload I found that a solution proposed seems to work when
> compiled with dmd but segfaults when compiled with gdc.
> ...
> int size;
> char[0] _b;
> @property char[] buf() { return (_b.ptr)[0..size];}
> }
I guess you are using different versions of the front-end.
Zero-length arrays was null before, and it's not null in V. 2.066.
So probably there is no bug, just a little design change for the
better.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list