This is the mail archive of the gcc-patches@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] |
Other format: | [Raw text] |
A new option -Wmissing-base-class-initializer takes over the warning for a base class that is not initialized in a derived class' copy constructor. The new option is enabled by -Wextra, so we keep the current behaviour but add the ability to enable/disable this individual warning.
Bootstrapped and regression tested with --enable-languages=all on i686-pc-linux-gnu.
PR middle-end/7651 * c.opt (Wmissing-base-class-initializer): New. * doc/invoke.texi (Wmissing-base-class-initializer): Document it. (Wextra): Enabled by -Wextra. (C++ Language Options): Add it. * c-opts.c (c_common_post_options): Enabled by -Wextra.
cp/ 2007-01-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/7651 * init.c (emit_mem_initializers): Replace Wextra with WWmissing-base-class-initializer.
testsuite/ 2007-01-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/7651 * g++.dg/warn/Wmissing-base-class-initializer.C: New. * g++.dg/warn/Wmissing-base-class-initializer-no.C: New. * g++.dg/warn/Wmissing-base-class-initializer.C: New.
Attachment:
wmissing-base-class-initializer.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |