diff options
author | Matthew Beliveau <mbelivea@redhat.com> | 2019-06-11 15:03:21 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-06-11 15:03:21 +0000 |
commit | d3786ebbb06f501be93cceaf087339986e4829c7 (patch) | |
tree | e9d8906df0f5a198c89227bd39ecdfc5ca01878a /gcc/cfgexpand.c | |
parent | da10c178007d4edea4ad97f49041c6a6a8c5b02d (diff) | |
download | gcc-d3786ebbb06f501be93cceaf087339986e4829c7.zip gcc-d3786ebbb06f501be93cceaf087339986e4829c7.tar.gz gcc-d3786ebbb06f501be93cceaf087339986e4829c7.tar.bz2 |
PR c++/90449 - add -Winaccessible-base option.
* doc/invoke.texi (Winaccessible-base): Document.
* c.opt (Winaccessible-base): Added new option.
* class.c (warn_about_ambiguous_bases): Changed name to:
maybe_warn_about_inaccessible_bases.
(maybe_warn_about_inaccessible_bases): Implemented new
Winaccessible-base warning option for both direct and virtual
base warnings.
(layout_class_type): Call to warn_about_ambiguous_bases changed to fit
new name.
* g++.dg/warn/Winaccessible-base-1.C: New file.
* g++.dg/warn/Winaccessible-base-2.C: New file.
* g++.dg/warn/Winaccessible-virtual-base-1.C: New file.
* g++.dg/warn/Winaccessible-virtual-base-2.C: New file.
From-SVN: r272157
Diffstat (limited to 'gcc/cfgexpand.c')
0 files changed, 0 insertions, 0 deletions