Sender: tim AT mxrelay DOT g-net DOT be Message-ID: <3BA5EE91.34C04104@falconsoft.be> Date: Mon, 17 Sep 2001 14:37:37 +0200 From: Tim Van Holder Organization: Anubex (www.anubex.com) X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en, nl-BE, nl MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Option -Wunused & STL References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Andris Pavenis wrote: > > On Mon, 17 Sep 2001, Alex Vinokur wrote: > > It is so also with gcc-3.0.X after adding missing 'using namespace std;' > and I don't expect changes, as it's not always simple to say when object > is not only unused but really useless Right - an object is always 'used' in the sense that its constructor is invoked. Even if that constructor is the default one, the object could have subobjects that have non-trivial constructors with important side effects. gcc would have to inspect all subobjects to decide whether or not the variable is really 'unused'.