Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Heads Up: Code generation bug



Indeed, there are several ways to avoid triggering this particular manifestation of this bug. I have even constructed other cases where code similar to the example does *not* result in a code generation error. This raises the possibility that perfectly legitimate code (not just this construction in particular) can sometimes (but not always) generate incorrect code.

Since the bug depends on optimization level, it suggests that both the code being compiled and the code around it play a role in whether the bug will occur or not.

_murat

On Nov 14, 2007, at 6:10 AM, David Spooner wrote:

If you change the initialization of your global variable to

	const NSPoint kItemLabelsOrigin = (NSPoint){20, 8};

then it works fine.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Heads Up: Code generation bug (From: m <email@hidden>)
 >Re: Heads Up: Code generation bug (From: David Spooner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.