summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCUDA/no-destructor-overload.cu
Commit message (Collapse)AuthorAgeFilesLines
* PR34163: Don't cache an incorrect key function for a class if queried betweenRichard Smith2017-08-121-5/+5
| | | | | | | | | | | the class becoming complete and its inline methods being parsed. This replaces the hack of using the "late parsed template" flag to track member functions with bodies we've not parsed yet; instead we now use the "will have body" flag, which carries the desired implication that the function declaration *is* a definition, and that we've just not parsed its body yet. llvm-svn: 310776
* [CUDA] Disallow overloading destructors.Justin Lebar2016-10-031-0/+33
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
OpenPOWER on IntegriCloud