Search

Compiling trivial boost::property_tree test gives fatal error C1001 by mloskot

Closed
as Fixed Help for as Fixed

2
0
Sign in
to vote
Type: Bug
ID: 708011
Opened: 11/23/2011 2:25:16 PM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
2
User(s) can reproduce this bug
I have a trivial C++ test program which uses boost::property_tree library:

// boost-property-tree.cpp ///////////////////////////////////////////////
#include <boost/test/unit_test.hpp>
#include <sstream>
#include <boost/property_tree/xml_parser.hpp>

BOOST_AUTO_TEST_SUITE(InternalCompilerErrorOnPropertyTreeTest)

BOOST_AUTO_TEST_CASE(test1)
{
    std::ostringstream oss;
    boost::property_tree::ptree t;
    boost::property_tree::xml_parser::write_xml(oss, t);
}

BOOST_AUTO_TEST_CASE(test2)
{
    std::ostringstream oss;
    boost::property_tree::ptree t;
    boost::property_tree::xml_parser::write_xml(oss, t);
}

BOOST_AUTO_TEST_SUITE_END()
/////////////////////////////////////////////////////////////////////////////////


Every time I try to compile it, cl.exe throws the following error:
fatal error C1001: An internal error has occurred in the compiler.

Here is complete cl.exe output produced inside Developer Command Prompt session:

/////////////////////////////////////////////////////////////////////////////////
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>d:

D:\>cd workshop\boost\boost-property-tree

D:\workshop\boost\boost-property-tree>cl.exe /EHsc /ID:\dev\boost\_svn\trunk boost-property-tree.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 17.00.40825.2 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

boost-property-tree.cpp
D:\dev\boost\_svn\trunk\boost/property_tree/xml_parser.hpp(106) : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'msc1.cpp', line 1435)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Internal Compiler Error in C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe. You will be prompted to send an error report to Microsoft later.
INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe'
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more information

D:\workshop\boost\boost-property-tree>
/////////////////////////////////////////////////////////////////////////////////

I use boost::property_tree from current trunk in Boost subversion repository, so the reported file D:\dev\boost\_svn\trunk\boost/property_tree/xml_parser.hpp comes from the current trunk at https://svn.boost.org/svn/boost/trunk/
I have not tested with any other Boost version.
Details (expand)

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

Visual Studio 11 Developer Preview

Steps to reproduce

1) Save my test program code into boost-property-tree.cpp file.
2) Checkout Boost from current trunk https://svn.boost.org/svn/boost/trunk/
3) Try to compile:

cl.exe /EHsc /ID:\dev\boost\_svn\trunk boost-property-tree.cpp

replacing D:\dev\boost\_svn\trunk with your location

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

fatal error C1001: An internal error has occurred in the compiler

Expected results

One of the following:
1) Compilation succeeds.
2) Compilation fails and the compiler reports compilation errors indicating C++ or library misuse.

The internal error thrown indicates potential serious issues within the compiler.

File Attachments
0 attachments
Sign in to post a comment.
Posted by Mark A Walters on 4/4/2012 at 12:29 AM
I have encountered this issue using the MSVC11.0 Beta Compiler (CL.EXE version 17.0.50214.1), and Boost 1.49.

In which future version of the C++ Compiler is this fix scheduled to be released for?

Cheers,
Mark.

Posted by Microsoft on 1/9/2012 at 7:59 AM
Hi: this issue has been fixed. The fix should show up in a future release of Visual C++.

Thank you for reporting the issue.

Jonathan Caves
Visual C++ Compiler Team
Posted by MS-Moderator07 [Feedback Moderator] on 11/23/2011 at 9:11 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 11/23/2011 at 2:46 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.