Home Dashboard Directory Help

Linker crash with no unusual settings by Y_Less


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 565435
Opened: 6/7/2010 2:11:56 AM
Access Restriction: Public
User(s) can reproduce this bug


The following code crashes the linker in VS2010 Pro. I can reproduce this crash every time and have no ususual settings for the linker. Minimal code to reproduce the crash is included in steps to reproduce.
Sign in to post a comment.
Posted by Microsoft on 6/14/2010 at 10:52 AM
Thanks for reporting this bug!

I've been able to reproduce this issue and have verified that it is a regression from VS2008. A fix is in development and will be incorporated into a future release.

You can work around this issue by disabling optimizations for the function that is causing the compiler to crash: DataStore::GenerateSeed.

In the provided example this can be done by putting the line

#pragma optimization("g", off)

before the definition of DataStore::GenerateSeed.

Thanks again for your feeback.

#pragma optimize("g", off)
Posted by Microsoft on 6/8/2010 at 12:39 AM
Thanks for your feedback. We were able to reproduce the issue you are seeing. 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.
Posted by Microsoft on 6/7/2010 at 5:01 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)
Sign in to post a workaround.