CL crashes while compiling specific line (see description) - by Grigory Cherny

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.


1
0
Sign in
to vote
ID 676037 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 6/19/2011 9:42:14 PM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

CL craches for the code below (with not defined 'MIN' macro). After defining 'MIN' macro (e.g. after uncommenting presented line) CL successfully compiles this code.


//------------------------------------------------------
//#define MIN(a,b) ((a)>(b)?(b):(a))

size_t Calc(unsigned a1, unsigned a2)
{
	return size_t(MIN(a1, a2) - a1);

}
//------------------------------------------------------
Sign in to post a comment.
Posted by Microsoft on 6/22/2011 at 11:13 AM
Hi:
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next release of Visual C++.

Xiang Fan
Visual C++ Team
Posted by MS-Moderator07 [Feedback Moderator] on 6/20/2011 at 2:14 AM
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 6/19/2011 at 9:48 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)