[cfe-dev] Multiple-defined __destructor_1, __destructor_8 when building with recent clang-cl

Stephan Bergmann via cfe-dev cfe-dev at lists.llvm.org
Tue Apr 17 00:11:55 PDT 2018


On 04/04/18 23:32, Akira Hatanaka wrote:
> r326307 and r327870 made changes that allow declaring ObjC __strong and 
> __weak fields in C structs, so they shouldn't have any effect if you are 
> compiling your code in C++ mode. Is it possible to come up with a small 
> C++ test case that causes clang to emit the destructor functions you are 
> seeing?

Filed <https://bugs.llvm.org/show_bug.cgi?id=37146> "clang-cl emits 
special functions for non-trivial C-structs ('__destructor_8') 
introduced for Objective-C" now, with reproducer.



More information about the cfe-dev mailing list