On 6/7/19 2:10 PM, Matthew Beliveau wrote:
This patch adds a new warning option: Winaccessible-base, so that
users are able to selectively control the warning. The warning is
enabled by default; however, for the virtual bases' warning, it only
triggers with -Wextra flag.

With few exceptions the rest of the manual tends to refer to base
classes.  I would suggest to do the same in this update as well:

@@ -4800,6 +4801,22 @@ is only active when @option{-fdelete-null-pointer-checks} is active,
 which is enabled by optimizations in most targets.  The precision of
 the warnings depends on the optimization options used.

+@item -Winaccessible-base @r{(C++, Objective-C++ only)}
+@opindex Winaccessible-base
+@opindex Wno-inaccessible-base
+Warn when a base is inaccessible in derived due to ambiguity. The warning is
+enabled by default.  Note the warning for virtual bases is enabled by the
+@option{-Wextra} option.


I.e.,

  Warn when a base class is inaccessible in a class derived from
  it due to ambiguity.

Martin

Reply via email to