Go to file
Eric Fiselier 35177d0fec [Sema] Fix PR35832 - Ambiguity accessing anonymous struct/union with multiple bases.
Summary:
Currently clang doesn't do qualified lookup when building indirect field decl references. This causes ambiguity when the field is in a base class to which there are multiple valid paths  even though a qualified name is used.

For example:
```
class B {
protected:
 int i;
 union { int j; };
};

class X : public B { };
class Y : public B { };

class Z : public X, public Y {
 int a() { return X::i; } // works
 int b() { return X::j; } // fails
};
```

Reviewers: rsmith, aaron.ballman, rjmccall

Reviewed By: rjmccall

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D45411

llvm-svn: 329519
2018-04-08 05:50:01 +00:00
clang [Sema] Fix PR35832 - Ambiguity accessing anonymous struct/union with multiple bases. 2018-04-08 05:50:01 +00:00
clang-tools-extra [clang-tidy] Fix compilation for MSVS@PSP4 for ParentVirtualCallCheck.cpp 2018-04-07 11:22:01 +00:00
compiler-rt [libFuzzer] Print a correct error message when a directory can't be 2018-04-06 18:15:24 +00:00
debuginfo-tests [Darwin] Specify DWARF 2/4 when running apple accelerator tests. 2018-02-26 20:56:45 +00:00
libclc select: simplify implementation and fix fp16 2018-04-06 22:00:00 +00:00
libcxx [libcxx][test] Silence -Wself-assign diagnostics 2018-04-07 10:36:03 +00:00
libcxxabi [CMake] Support for monorepo layout 2018-04-04 17:40:59 +00:00
libunwind [cmake] Remove duplicate command line options from build 2018-04-05 20:27:50 +00:00
lld [tests] Fix format-binary-non-ascii.s to work with Python 3 on Windows 2018-04-07 00:55:26 +00:00
lldb [lldb-server] Set a more generous timeout when testing gdbremote. 2018-04-06 17:17:20 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [DAGCombiner] Fold (zext (and/or/xor (shl/shr (load x), cst), cst)) 2018-04-07 23:36:10 +00:00
openmp [OpenMP] enable bc file compilation using the latest clang 2018-04-03 15:01:34 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [doc] Overhaul doc on preparing IR for processing by Polly. 2018-04-06 19:24:18 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.