On Tue, 2012-09-25 at 14:26 +0200, Stephan Bergmann wrote: > > Neato :-) the deeper question - as to why no warnings are popping out > > of the compiler for this when (surely) it's a trivial thing to check / > > warn for - is more concerning. > > Such a warning option has never been there AFAIK.
Oh - must be me mis-remembering it, or remembering valgrind output that catches that, silly me. > There is no way for the compiler to decide this in general (unlike Java, > C++ does not have restricting rules to allow the compiler to do so). no way ? surely there is - add a warning for un-initialized POD members on the exit of the constructor. It seems that fools seldom differ, and there is such a patch here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2972 Doesn't seem to be going anywhere in the last month, but - you can but hope :-) ATB, Michael. -- michael.me...@suse.com <><, Pseudo Engineer, itinerant idiot _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice