------ Build started: Project: BglFirstLook, Configuration: Debug Win32 ------ Compiling... Tests.cpp C:\Work\Dev\External\Boost\boost_1_25_1\boost\type_traits\cv_traits.hpp(188) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2844) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Build Time 0:01 Build log was saved at "file://c:\Work\Code\Cpplus\Tutorials\BglFirstLook\Debug\BuildLog.htm" BglFirstLook - 1 error(s), 0 warning(s) ---------------------- Done ---------------------- /************************************************ 1) Working on the Boost Graph Library. 1.a) Problems - Visual Studio v 7.0.9466, - .NET framework v 1.0.3705. Project: \BglFirstLook\BlgFirstLook.sln. With Boost 1.25.1 version, previously used for by me for smart_ptr and thread, attempted to use sample code from Boost's Graph tutorial. Got compiler error: \boost_1_25_1\boost\type_traits\cv_traits.hpp(188) : fatal error C1001: INTERNAL COMPILER ERROR Tried several workarounds, none were satisfactory. The problem arises in cv_traits.hpp, structs "is_const" and "is_volatile". Each contains a member variable, "value", that is loaded at compile time using "BOOST_STATIC_CONSTANT". The problem seems to be in taking the address of a static constant at compile time. I was able to see the same error when I removed "BOOST_STATIC_CONSTANT" and "is_const_helper". *********************** Code referred to above: cv_traits.hpp *********************** template struct is_const { private: static T t; public: // Line: 188 follows. BOOST_STATIC_CONSTANT(bool, value = (sizeof(detail::yes_type) == sizeof(detail::is_const_helper(&t)))); }; *********************** Same compiler error: *********************** template struct is_const { private: static T t; public: static T* tp = &t; }; 1.b) Repeat with Visual Studio - v 6.0, SP 5, Enterprise Edition. Project: \BglFirstLook\TTT.dsw. Saw no problems, except the usual 4786 warnings from the standard C++ library. The test program ran as expected. 1.c) Repeat with Dinkum 3.08 library. Project: \BglFirstLook\TTT.dsw. Project fails to compile. The first (and typical) error: c:\work\dev\external\boost\boost_1_25_1\boost\concept_check.hpp(570) : error C2039: 'ptrdiff_t' : is not a member of 'std' c:\work\dev\external\boost\boost_1_25_1\boost\concept_check.hpp(572) : see reference to class template instantiation 'boost::RandomAccessIteratorConcept' being compiled 1.d) Resolution Use VS 6.0 when working with Boost, send report to Boost and MSoft. /************************************************