Home Dashboard Directory Help
Search

const ref to initializer_list is not recognized as valid ctor by ixSci


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 770888
Opened: 11/13/2012 6:03:34 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

See the code below:
class A
{
public:
    A(const std::initializer_list<int>& list)
    {
    }
};

int main()
{
    A a = {1,2,3};
};

Code should compile but in fact it doesn't. It compiles only with non-ref initializer list
Details
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:31 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 11/20/2012 at 10:28 AM
Hi:
    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 11/13/2012 at 6:45 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Microsoft Visual Studio Connect Support Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 11/13/2012 at 6:19 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)
Sign in to post a workaround.