VC++10 crashing on basic BOOST_TYPEOF usage - by Georg Fritzsche

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 718621 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/14/2012 4:27:47 PM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

Visual C++ 2010 is crashing on basic BOOST_TYPEOF usage:

#include <boost/typeof/typeof.hpp>
struct A { int m; };
int main() {
	BOOST_TYPEOF(A::m);
}

This is with:
 * Boost 1.47
 * Visual Studio 10.0.40219.1 SP1Rel
Sign in to post a comment.
Posted by Ulzii [MSFT] on 3/21/2012 at 3:50 PM
Hello,

Thank you for reporting this bug. This indeed was a bug in our compiler where it was crashing when trying to give an error for illegal access of a non-static member of a class. We've fixed the bug in the next version of the product. In the meantime, while you're using VS2010SP1 please fix your code here:
BOOST_TYPEOF(A().m);

Thanks,
Ulzii Luvsanbat
Visual C++ Team
Posted by MS-Moderator07 [Feedback Moderator] on 1/15/2012 at 8:36 PM
Thanks for your feedback.

We are rerouting 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 MS-Moderator01 on 1/14/2012 at 4:42 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)