diff options
author | Reid Kleckner <rnk@google.com> | 2017-10-27 22:48:41 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-10-27 22:48:41 +0000 |
commit | c124c77b3b52e2d04aed181a426f1971cb1614e4 (patch) | |
tree | 6b10da22ed9fb1c352abf68507b2354c64568dcb /lib/Driver/SanitizerArgs.cpp | |
parent | 0d8450b358fac348761b11924a92e8d269389cb1 (diff) | |
download | clang-c124c77b3b52e2d04aed181a426f1971cb1614e4.tar.gz |
[MS] Allow access to ambiguous, inaccessible direct bases
Summary:
Clang typically warns that in the following class hierarchy, 'A' is
inaccessible because there is no series of casts that the user can
write to access it unambiguously:
struct A { };
struct B : A { };
struct C : A, B { };
MSVC allows the user to convert from C* to A*, though, and we've
encountered this issue in the latest Windows SDK headers.
This patch allows this conversion when -fms-compatibility is set and
adds a warning for it under -Wmicrosoft-inaccessible-base.
Reviewers: rsmith
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D39389
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/SanitizerArgs.cpp')
0 files changed, 0 insertions, 0 deletions