Home Dashboard Directory Help
Search

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


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 718578
Opened: 1/14/2012 9:36:52 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

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.
Details
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)
Sign in to post a workaround.