is this an instance of the 16-byte struct bug
deadalnix
deadalnix at gmail.com
Mon Nov 4 13:44:32 PST 2013
On Monday, 4 November 2013 at 19:24:11 UTC, Daniel Davidson wrote:
> Ok - pretty sure this is not related to 16-byte structs, since
> if I just remove one of the fields it still crashes. I opened
> an issue - and here is a simplified version:
>
> http://d.puremagic.com/issues/show_bug.cgi?id=11440
>
> import std.stdio;
>
> struct Y {
> private immutable(int)[] _data;
> }
>
> struct CFS {
> double x = 5;
> Y growth;
> }
>
> void main() {
> auto s = CFS(1.0); // crash
> //auto s = CFS(1, Y()); // crash
> //auto s = CFS(1, Y([])); // works
> writeln(s);
> }
What do you mean by crash ?
More information about the Digitalmars-d
mailing list