is this an instance of the 16-byte struct bug
    Daniel Davidson 
    nospam at spam.com
       
    Mon Nov  4 11:24:09 PST 2013
    
    
  
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);
}
    
    
More information about the Digitalmars-d
mailing list