summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/accessible-base.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [MS] Allow access to ambiguous, inaccessible direct basesReid Kleckner2017-10-271-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 316807
* PR6037Nathan Sidwell2015-01-191-0/+23
Warn on inaccessible direct base llvm-svn: 226423
OpenPOWER on IntegriCloud