gcc warnings when including fstream

The program:

#include
int main( void ) { return 0; }

produces a warning about ‘base initializer for ‘std::basic_streambuf’…will
be re-ordered’ when compiling using any non-zero warning level (-w). We like
using agressive warning levels but this looks like a bogus message to me? If
it is, then is there a version of fstream that compiles cleanly?

Thanks

Harry Qualls,
Tree-D, Inc.

Harry Qualls <hfq@tree-d.com> wrote:

The program:

#include <fstream
int main( void ) { return 0; }

produces a warning about ‘base initializer for ‘std::basic_streambuf’…will
be re-ordered’ when compiling using any non-zero warning level (-w). We like
using agressive warning levels but this looks like a bogus message to me? If
it is, then is there a version of fstream that compiles cleanly?

This has been fixed internally, for you now you can disable that warning
with -Wno-reorder


cburgess@qnx.com