id summary reporter owner description type status milestone component version severity resolution keywords cc 4369 function::function_base potential uninitialized data member Steve Hawkes Douglas Gregor "When running the Klocwork static code analysis tool on some code that uses Boost, Klocwork reported the following potential issue in Boost.Function (note that this is for boost 1_36_0, but the latest trunk code appears to have the same issue): ---- 'this->functor.const_obj_ptr' is not initialized in this constructor.[[BR]] function_base.hpp:576: 'this->functor.const_obj_ptr' is used, but is uninitialized.[[BR]] {{{ class function_base { public: function_base() : vtable(0) { } ... public: // should be protected, but GCC 2.95.3 will fail to allow access detail::function::vtable_base* vtable; mutable detail::function::function_buffer functor; }; }}} ---- A similar error is reported for each field in the functor data member (a function_buffer union). Wouldn't it be appropriate to initialize the functor data member to a default value, as is done with the vtable data member?" Bugs closed Boost 1.44.0 function Boost Development Trunk Problem invalid function_base