Previously, clang would crash on the test case below, because it misinterprets the operator=(bool) call as a move assignment operator.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D20923
[Sema] Fix a crash on invalid where invalid defaulted function is called ClosedPublic Authored by erik.pilkington on Jun 2 2016, 10:03 AM.
Details Summary Previously, clang would crash on the test case below, because it misinterprets the operator=(bool) call as a move assignment operator.
Diff Detail
Event Timelineerik.pilkington retitled this revision from to [Sema] Fix a crash on invalid where invalid defaulted function is called. erik.pilkington updated this object. This revision is now accepted and ready to land.Jun 20 2016, 11:14 AM Closed by commit rL273193: [Sema] Only define function as move assignment when needed (authored by epilk). · Explain WhyJun 20 2016, 1:11 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 61296 cfe/trunk/lib/Sema/SemaExpr.cpp
cfe/trunk/test/SemaCXX/cxx0x-defaulted-functions.cpp
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||