Re: Using Clang with D

2012-01-26 Thread Jacob Carlborg
On 2012-01-26 20:49, Timon Gehr wrote: On 01/26/2012 08:44 PM, Jacob Carlborg wrote: On 2012-01-26 10:29, Jacob Carlborg wrote: I'm trying to port a simple example that uses Clang from C to D but for some reason the D version results in a segmentation fault. This is the C code: http://pastebin

Re: Using Clang with D

2012-01-26 Thread Timon Gehr
On 01/26/2012 08:44 PM, Jacob Carlborg wrote: On 2012-01-26 10:29, Jacob Carlborg wrote: I'm trying to port a simple example that uses Clang from C to D but for some reason the D version results in a segmentation fault. This is the C code: http://pastebin.com/4B2JGz9n This is the D code: http:

Re: Using Clang with D

2012-01-26 Thread Jacob Carlborg
On 2012-01-26 10:29, Jacob Carlborg wrote: I'm trying to port a simple example that uses Clang from C to D but for some reason the D version results in a segmentation fault. This is the C code: http://pastebin.com/4B2JGz9n This is the D code: http://pastebin.com/XPBsSVup The stacktrace from GD

Using Clang with D

2012-01-26 Thread Jacob Carlborg
I'm trying to port a simple example that uses Clang from C to D but for some reason the D version results in a segmentation fault. This is the C code: http://pastebin.com/4B2JGz9n This is the D code: http://pastebin.com/XPBsSVup The stacktrace from GDB looks like this: (gdb) r Starting progra