This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++2.10-dev: warning: base init. will be reordered, when just including "rope.h"


>/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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]