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]

Wambiguous-virtual-bases (PR7651 Define -Wextra strictly in terms of other warning flags)


:ADDPATCH c++:

This patch continues the effort to fix PR7651 [1].

It adds a new option -Wambiguous-virtual-bases that takes over the
function of warning  about ambiguous virtual bases. 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.

OK for mainline?

[1] http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01103.html


2006-12-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>


  PR middle-end/7651
  * c.opt (Wambiguous-virtual-bases): New.
  * doc/invoke.texi (Wambiguous-virtual-bases): Document it.
  (Wextra): Enabled by -Wextra.
  (C++ Language Options): Add it.
  * c-opts.c (c_common_post_options): Enabled by -Wextra.

cp/
2006-12-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

  PR middle-end/7651
  * class.c (warn_about_ambiguous_bases): Replace Wextra with
  Wambiguous-virtual-bases.

testsuite/
2006-12-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

  PR middle-end/7651
  * g++.dg/warn/Wambiguous-virtual-bases.C: New.
  * g++.dg/warn/Wambiguous-virtual-bases-Wextra.C: New.
  * g++.dg/warn/Wambiguous-virtual-bases-no.C: New.

Attachment: wambiguous-virtual-bases.diff
Description: Text document


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