Visual Studio and .NET Framework Home
Thank you for your feedback!
Possible optimization bug on manual bounds checking
- by 59C4DB0A-7734-4D58-A475-4F3AC3B7DCF8
This item has been fixed in the current or upcoming version of this product.
A more detailed explanation for the resolution of this particular item may have been provided in the comments section.
12/1/2010 11:07:07 AM
I found what appears to be an optimization bug in visual studio 2008 and 2010.
ATTACH A FILE
EDIT THIS ITEM
Item can only be reassigned when it is active.
to post a comment.
Please enter a comment.
[MSFT] on 12/3/2010 at 10:49 AM
Thanks again for reporting this issue! We have a fix in the works which will be incorporated into a future release of Visual Studio.
In the meantime you can workaround this issue in your code by disabling optimizations in the function(s) that exhibits the incorrect behavior. This can be done via the optimize pragma:
#pragma optimize( "", off )
... // function exhibiting incorrect behavior
#pragma optimize( "", on )
More information on how to use this pragma can found here: http://msdn.microsoft.com/en-us/library/chh3fb0k(v=VS.100).aspx
Thanks again for helping us make continuing improvements to our compiler.
VC++ Codegen & Optimization Team
on 12/1/2010 at 6:15 PM
Thanks for your feedback. We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
on 12/1/2010 at 5:54 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
to post a workaround.
Please enter a workaround.
Attach a file
© 2016 Microsoft