Search

[Codename Milan] Missing <initializer_list> include causes compiler crash by Daniel Kr.1

Closed
as Fixed Help for as Fixed

2
0
Sign in
to vote
Type: Bug
ID: 774153
Opened: 12/12/2012 11:55:13 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
An attempt to compile the following program causes the compiler to crash
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

Attempt to compile:

//--------------------------
template<class T>
void foo(const T&){}

int main() {
auto li = {1, 2};
foo(li);
}

Product Language

English

Operating System

Windows 7 SP1

Operating System Language

German

Actual results

The output is expected:

1>------ Rebuild All started: Project: VSSandbox (Microsoft Visual C++ Compiler Nov 2012 CTP), Configuration: Debug Win32 ------
1> 'Microsoft Visual C++ Compiler Nov 2012 CTP' is for testing purposes only.
1> main.cpp
1>f:\develop\cpp\c++0x\vssandbox - 2011\main.cpp(5): error C3086: cannot find 'std::initializer_list': you need to #include <initializer_list>

but in addition to that a compiler error is diagnosed:

Problemsignatur:
Problemereignisname:    APPCRASH
Anwendungsname:    CL.exe
Anwendungsversion:    17.0.51025.0
Anwendungszeitstempel:    50890cf4
Fehlermodulname:    c1xx.dll
Fehlermodulversion:    17.0.51025.0
Fehlermodulzeitstempel:    50890cb1
Ausnahmecode:    80000003
Ausnahmeoffset:    001341d0
Betriebsystemversion:    6.1.7601.2.1.0.768.3
Gebietsschema-ID:    1031
Zusatzinformation 1:    0a9e
Zusatzinformation 2:    0a9e372d3b4ad19135b953a78882e789
Zusatzinformation 3:    0a9e
Zusatzinformation 4:    0a9e372d3b4ad19135b953a78882e789

Lesen Sie unsere Datenschutzbestimmungen online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0407

Wenn die Onlinedatenschutzbestimmungen nicht verfügbar sind, lesen Sie unsere Datenschutzbestimmungen offline:
C:\Windows\system32\de-DE\erofflps.txt

Expected results

The compiler should not give an APPCRASH event
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 12/14/2012 at 10:13 PM
Hi Daniel:
    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 12/12/2012 at 12: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)
Sign in to post a workaround.