[C++] Reference default argument falsely converted to pointer on instantiation of more than 2 explicit specializations - by CodingCat

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 718578 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/14/2012 9:36:52 AM
Access Restriction Public

Description

The VC++ 2010 compiler falsely converts default arguments of reference types to default arguments of pointer types when there are more than 2 explicit specializations of the corresponding function template and both are used in the same compilation unit. See details for example code.
Sign in to post a comment.
Posted by Microsoft on 1/16/2012 at 12:30 PM
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 1/15/2012 at 7:05 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 9:43 AM
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)