Mail Archives: djgpp/2001/09/17/08:41:43
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'.
- Raw text -