Dear Peter,
g++ supports these amazingly powerful warnings. Using -WOverloaded-virtual caught some ugly bug for me. ( Java guys included @Override annotation which works in a similar way ).
I read somewhere that a lot of people use g++ and these warnings as some kind of poor man’s lint. I think we should also put these in our makefile too ;-)
-Wnon-virtual-dtor
-Wreorder
-Weffc++
-Wold-style-cast ( incredibly useful for old/legacy code ;-)
-Woverloaded-virtual
-Wsign-promo
The last I looked, sun CC did not have these…. They said they will try and put these things in.
Sun CC is a very good compiler - and as the gurus prescribe, we should make our sources go thru as many compilers as possible ;-)
As we already build with g++/VC 8, I will try to add Sun CC ( I am waiting for the machine so all the setup can be done for once ;-).
And then DRDT… They claimed they have it working on Solaris 86 so that could be the only reason to keep compiling under CC ;-) It is a great tool ( actually a suite of tools - like lock_lint etc. )
And lastly Opensolaris has full support for DTrace ;-)
– cheerio atul
