[Codename Milan] Brace-initialization fails in function argument list (C2275) - by Vidar Hasfjord

Status : 

 


1
0
Sign in
to vote
ID 778440 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 2/3/2013 9:57:13 PM
Access Restriction Public

Description

The use of brace-initialization to construct a temporary in a function argument list fails with the error C2275; "illegal use of this type as an expression".

Workaround: Use old-style constructor call syntax.
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:29 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by Microsoft on 2/4/2013 at 10:46 AM
Hi Vidar:
    Thanks for reporting the issue.
    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 Microsoft on 2/4/2013 at 1:24 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 Microsoft on 2/4/2013 at 1:24 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 Microsoft on 2/3/2013 at 10:51 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)