[cfe-users] Usage of CLang CUDA target with MinGW stdlib

2018-11-02 Thread KOLANICH via cfe-users
Hello everybody. Could anyone clarify how to use this cuda target (-std=c++11 -x cuda) with MinGW stdlib? I mean I get errors \LLVM-7.0.0-win32\lib\clang\7.0.0\include\cuda_wrappers\new:41:12: error: use of undeclared identifier 'malloc' return ::malloc(size); \LLVM-7.0.0-win32\lib\clang\7.0.0

[cfe-users] UB Sanitizer false positive

2018-11-02 Thread James Walker via cfe-users
Writing for Mac Cocoa in Objective-C, I have a subclass of NSApplication that overrides sendAction:to:from:. The override often ends up calling [super sendAction: anAction to: aTarget from: sender] and when aTarget is nil, UB Sanitizer says "Null pointer passed as argument 1, which is declare