[NSDMI + Array][milan][initlist] C++11 unified initialization fails with C-style arrays - by AM_12756

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.

Sign in
to vote
ID 802058 Comments
Status Closed Workarounds
Type Bug Repros 10
Opened 9/24/2013 2:32:36 AM
Access Restriction Public


A well formed C++11 program that tries to initialize C-style array inside a constructor of a class causes a compilation error as it would in C++03.
Sign in to post a comment.
Posted by Xiang [MSFT] on 1/27/2015 at 3:30 PM
    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 major release of Visual C++.

Xiang Yan
Visual C++ Team
Posted by Adequat on 1/13/2014 at 5:47 AM
For example:
    char    m_properties[64] {};

declared in a class, will fail with:
fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\convert.cpp', line 9608)

Posted by Macy [MSFT] on 9/24/2013 at 7:33 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 Macy [MSFT] on 9/24/2013 at 2:50 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)