diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2017-09-21 19:54:12 +0000 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2017-09-21 19:54:12 +0000 |
commit | 4fbaa62b60b872654a5e2dbfd68337dc34b5f8cc (patch) | |
tree | 381d52c649a7e58257b48abac49378784bd51a49 /lldb/packages/Python/lldbsuite/test/example/TestSequenceFunctions.py | |
parent | 0fe506bc5eff0b3b77632ff8db00165ae07830ee (diff) | |
download | bcm5719-llvm-4fbaa62b60b872654a5e2dbfd68337dc34b5f8cc.tar.gz bcm5719-llvm-4fbaa62b60b872654a5e2dbfd68337dc34b5f8cc.zip |
[Sema] Prevent InstantiateClass from checking unrelated exception specs.
Sema::InstantiateClass should check only exception specs added during
class instantiation and ignore already present delayed specs. This fixes
a case where we instantiate a class before parsing member initializers,
check exceptions for a different class and fail to find a member
initializer. Which is required for comparing exception specs for
explicitly-defaulted and implicit default constructor. With the fix we
are still checking exception specs but only after member initializers
are present.
Removing errors in crash-unparsed-exception.cpp is acceptable according
to discussion in PR24000 because other compilers accept code in
crash-unparsed-exception.cpp as valid.
rdar://problem/34167492
Reviewers: davide, rsmith
Reviewed By: rsmith
Subscribers: dim, cfe-commits
Differential Revision: https://reviews.llvm.org/D37881
llvm-svn: 313906
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/example/TestSequenceFunctions.py')
0 files changed, 0 insertions, 0 deletions