diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-06-13 06:43:46 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-06-13 06:43:46 +0000 |
| commit | 22b4e77bd6ac8b36a61fb1cf830c3af191950d4c (patch) | |
| tree | bc5d5ff0f3b7a4da5093bbb836782d6fc61be9f1 /lib/CodeGen/CGExprScalar.cpp | |
| parent | af74764a820bdf7d017a8c934bc7140cb080d9e1 (diff) | |
| download | clang-22b4e77bd6ac8b36a61fb1cf830c3af191950d4c.tar.gz clang-22b4e77bd6ac8b36a61fb1cf830c3af191950d4c.tar.bz2 clang-22b4e77bd6ac8b36a61fb1cf830c3af191950d4c.tar.xz | |
MS ABI: Fix inheritance model calculation in CRTP
CRTP-like patterns involve a class which inherits from another class
using itself as a template parameter.
However, the base class itself may try to create a pointer-to-member
which involves the derived class. This is problematic because we
may not have finished parsing the most derived classes' base specifiers
yet.
It turns out that MSVC simply uses the unspecified inheritance model
instead of doing anything fancy.
This fixes PR19987.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
0 files changed, 0 insertions, 0 deletions
