Bus error on 32bit OSX, not 64bit

Jacob Carlborg doob at me.com
Tue Apr 16 12:27:16 PDT 2013


On 2013-04-14 16:48, Jacob Carlborg wrote:
> This code:
>
> http://pastebin.com/U5XdFfDq
>
> Will result in a bus error when compiled as 32bit. Three ways the bus
> error won't happen:
>
> * If I compile as 64bit everything works fine
> * If the function "foo" is moved inline in the "main" function
> everything works fine
> * If store the return value of "fp" in "foo" in a temporary variable and
> then return it
>
> DMD 2.062
> Mac OS X 10.8.2
>

I think this problem is the same:

http://forum.dlang.org/thread/kkk8kh$2jsu$1@digitalmars.com

This is without all the casts and Objective-C runtime functions.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list