Boost logo

Boost :

Subject: Re: [boost] VC2013 1.55 beta failures
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2013-10-18 11:43:48


I installed VS2013, compiled boost trunk r86347 (no apparent errors but I
didn't do a full log check)
I found a compiler crash if you do (full repro case):

#include <boost/thread/synchronized_value.hpp>
#include <boost/property_tree/ptree.hpp>

boost::synchronized_value<boost::property_tree::ptree> tree;

That's the whole code of the file.
Which triggers:

1> config.cpp
1>e:\projects\sdk\boost\boost\include\boost-1_55\boost\thread\synchronized_value.hpp(401):
fatal error C1001: An internal error has occurred in the compiler.
1> (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\types.c', line
12852)
1> To work around this problem, try simplifying or changing the program
near the locations listed above.
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1>
 e:\projects\games\netrush\netrush_projects\projects\netrush\system\core\config.cpp(151)
: see reference to class template instantiation
'boost::synchronized_value<boost::property_tree::ptree,boost::mutex>' being
compiled
Build has been canceled.

It might be related to a compiler crash I reported there:
http://connect.microsoft.com/VisualStudio/feedback/details/802157/compiler-crash-mixing-boost-synchronized-value-and-boost-property-tree

I'm not sure if it would be a good idea to make this a test.
I'll replace this code by a separate mutex and will report if I find other
problems.

Note that I didn't have this problem with a previous boost trunk release
from july (can't find the specific revision right now), compiled with the
RC.
W<http://connect.microsoft.com/VisualStudio/feedback/details/802157/compiler-crash-mixing-boost-synchronized-value-and-boost-property-tree>hen
I got VS2013 RTM I compiled my project with boost trunk from july compiled
by the RC, it worked as before, so I don't know if the change was in boost
or the compiler or both.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk