This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++2.10-dev: warning: base init. will be reordered, when just including "rope.h"
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Re: libstdc++2.10-dev: warning: base init. will be reordered, when just including "rope.h"
- From: "Artem Hodyush" <artem at duma dot gov dot ru>
- Date: Fri, 5 Nov 1999 17:47:55 +0300
>/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/stl_rope.h:390: warning: base initializer for
`_Rope_rep_base<_CharT,_Alloc>'
>/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3/stl_rope.h:390: warning: will be re-ordered to precede member
initializations
Use -Wno-reorder to suppress these warnings.
I think this warning could be improved.
In typical c++ program most base and member initializers are trivial and
independent of each other. In such cases re-ordering them has no effect,
but warning is still issued, and rare cases when re-ordering is really
dangerous are lost in the noise.
IMHO, it is safe to suppress this warning when we can determine that
re-ordering of initializers has no effect.
Does this suggestion seem reasonable?
Artem