Click on image to see enlargment
Nathan is opening a restaurant with a celebrity line of sandwiches. Unfortunately the program occasionally bombs. What's going on?
bug1541.cpp lint Output
--- Module: bug1541.cpp (C++) _ } bug1541.cpp(15) : Warning 1541: Member 'Sandwich::ingred2' (line 6) possibly not initialized by constructor _ }; bug1541.cpp(18) : Info 1712: default constructor not defined for class 'Sandwich' _ } bug1541.cpp(25) : Info 1788: Variable 'bh' (line 21) (type 'Sandwich') is referenced only by its constructor or destructor --- Wrap-up for Module: bug1541.cpp Info 749: local enumeration constant 'Bread::white' (line 2, file bug1541.cpp) not referenced
Reference Manual Explanation
1541 member 'Symbol' (Location) possibly not initialized by constructor -- The indicated member symbol may not have been initialized by a constructor. Was this an oversight? Some of the paths that the constructor takes do initialize the member.
If you have comments or questions about this bug, please post them to our Discussion Forum
Previous Bug - Bug #662 - June 2011