Go to file
John McCall 5149fbfd56 Only suppress instance context if a member is actually
accessible in its declaring class;  otherwise we might
fail to apply [class.protected] when considering
accessibility in derived classes.

Noticed by inspection; <rdar://13270329>.

I had an existing test wrong.  Here's why it's wrong:

Follow the rules (and notation) of [class.access]p5.
The naming class (N) is B and the context (R) is D::getX.
- 'x' as a member of B is protected, but R does not occur
  in a member or friend of a class derived from B.
- There does exist a base class of B, A, which is accessible
  from R, and 'x' is accessible at R when named in A because
  'x' as a member of A is protected and R occurs in a member
  of a class, D, that is derived from A;  however, by
  [class.protected], the class of the object expression must
  be equal to or derived from that class, and A does not
  derive from D.

llvm-svn: 175858
2013-02-22 03:52:55 +00:00
clang Only suppress instance context if a member is actually 2013-02-22 03:52:55 +00:00
clang-tools-extra Fixing a "multiple rules generate X" warning from ninja 2013-02-21 15:12:01 +00:00
compiler-rt [ASan] temporarily disable alloc_dealloc_mismatch on Mac, since the previous commit caused error reports in gTest. 2013-02-21 17:12:21 +00:00
debuginfo-tests Harden this test a bit to work on the mac with ancient gdbs. 2013-01-17 20:09:50 +00:00
libclc Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
libcxx Constrain bind operator()() to not exist if the call is not valid. Fixes http://llvm.org/bugs/show_bug.cgi?id=15295. 2013-02-21 18:16:55 +00:00
libcxxabi Bruce Mitchener: Typo fixes. 2013-02-15 15:48:49 +00:00
lld [ELF][Writer] Add .interp section. 2013-02-20 20:13:47 +00:00
lldb Using __package__ and __name__ seems redundant - __name__ should always contain the fully qualified module name 2013-02-22 02:21:10 +00:00
llvm Fix isa<> check which could never be true. 2013-02-22 01:50:38 +00:00
polly capitalize SCEV to match the current naming convention 2013-02-15 21:26:53 +00:00