|
PC-lint/FlexeLint Output | Reference Manual Explanation | Home bug1557.cpp
Our programmer was having a few difficulties so he reduced his program down to the above simple example and was amazed to find that it did not print zeros. What's going on? bug1557.cpp lint Output
--- Module: bug1557.cpp
_
B() :a() { }
bug1557.cpp(8) : Warning 1557: const member 'B::a' is not initialized
bug1557.cpp(8) : Warning 1401: member 'B::a' (line 8) not initialized by constructor
Reference Manual Explanation
1557 const member 'Symbol' is not initialized -- A class member typed const class
(or struct or union) is mentioned in a constructor initializer list. But the
class (or struct or union) referenced has no constructor and hence the member
is not initialized. See also message 1769.
If you have comments or questions about this bug, please post them to our Discussion Forum |
Previous Bug - Bug #551 - October 2003