summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCUDA/call-overloaded-destructor.cu
Commit message (Collapse)AuthorAgeFilesLines
* [CUDA] Disallow overloading destructors.Justin Lebar2016-10-031-17/+0
| | | | | | | | | | | | | | | | | | | | | | Summary: We'd attempted to allow this, but turns out we were doing a very bad job. :) Making this work properly would be a giant change in clang. For example, we'd need to make CXXRecordDecl::getDestructor() context-sensitive, because the destructor you end up with depends on where you're calling it from. For now (and hopefully for ever), just disallow overloading of destructors in CUDA. Reviewers: rsmith Subscribers: cfe-commits, tra Differential Revision: https://reviews.llvm.org/D24571 llvm-svn: 283120
* [CUDA] Don't assume that destructors can't be overloaded.Justin Lebar2016-07-121-0/+17
Summary: You can overload a destructor in CUDA, and SemaOverload needs to be tweaked not to crash when it sees an explicit call to an overloaded destructor. Reviewers: rsmith Subscribers: cfe-commits, tra Differential Revision: http://reviews.llvm.org/D21912 llvm-svn: 275231
OpenPOWER on IntegriCloud