diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-10-10 14:26:40 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-10-10 14:26:40 +0000 |
| commit | 7ae80c6396a6095f5a57df67b4282ec66724e6cc (patch) | |
| tree | afc09ecf7ad02d8d729859599db6f6620950c6e8 /llvm/lib | |
| parent | ea99ff719bd458f69ad9c2d2f59396950937b8db (diff) | |
| download | bcm5719-llvm-7ae80c6396a6095f5a57df67b4282ec66724e6cc.tar.gz bcm5719-llvm-7ae80c6396a6095f5a57df67b4282ec66724e6cc.zip | |
[Sema] Prevent using member declaration diagnostic if the base class is invalid.
Summary:
Once a base class has been made invalid (by a static_assert for example) all using-member declarations in the derived classes will result in a "not a base class" diagnostic. This diagnostic is very misleading and should not be emitted.
This change is needed to help libc++ produce reasonable diagnostics in `std::optional` and `std::variant`.
Reviewers: rsmith, majnemer, aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D25430
llvm-svn: 283755
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

