Instantiating a class in d file with an extern (c) block causes immediate segfault!

John Grindstaff perfectcell14 at yahoo.com
Thu Jul 31 10:26:09 PDT 2008


Is this version of gdc you are using compiled against GCC 4.2.* or 
4.1.*? If you are trying to use nested functions, it is probably best to 
use 4.1 because I have had random crashes with nested functions in 4.2.*

kamatsu wrote:
> On my system, when I do:
> 
> gdc *.c *.d
> ./a.out
> 
> I get:
> 
> segmentation fault
> 
> I can instantiate classes fine with normal D, but as soon as the extern(c) stuff creeps in bang - no classes for me!
> 
> Can you please explain what's wrong? And how I can fix it?
> 


More information about the D.gnu mailing list