id summary reporter owner description type status milestone component version severity resolution keywords cc 11998 Static const variables cannot be logged Hendrik Schall Andrey Semashev "Static const variables cannot be logged for me any more. I am using RHEL 7.1 and the Intel icpc for my programms (boost compiled with gcc 4.8.3) The following code does not work in 1.60.0 but does in 1.59.0 Maybe it has to do with the changes regarding formatting_ostream #11549 or #11545 Code: {{{ /* * File: main.cpp * Author: hschall * * Created on February 18, 2016, 6:53 AM */ #include #define BOOST_LOG_DYN_LINK #include class TestStaticError{ public: static void doLog(){ BOOST_LOG_TRIVIAL(debug) << myVar; } private: static const unsigned int myVar = 1337; }; class TestStaticWorking{ public: static void doLog(){ BOOST_LOG_TRIVIAL(debug) << (unsigned int)myVar; } private: static const unsigned int myVar = 1337; }; using namespace std; /* * */ int main(int argc, char** argv){ TestStaticWorking::doLog(); // Works // Works in 1.59.0 //TestStaticError::doLog(); // main.cpp:21: undefined reference to `TestStaticError::myVar' return 0; } }}} " Bugs closed To Be Determined log Boost 1.60.0 Problem fixed log static const