We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cl.exe accepts this program:
template void _DebugHeapDelete(_Ty *_Ptr) { if (_Ptr != 0) { _Ptr->~_Ty(); } }
void f() { int* a = 0; _DebugHeapDelete((void*)a); }
clang rejects it (it's accepted without the void* cast). This appears in the xdebug header of msvc's library.
(Workaround: Don't do debug builds.)
The text was updated successfully, but these errors were encountered:
r148682
Sorry, something went wrong.
There was a small problem with the fix: we returned ExprError() after diagnosing with a warning, instead of producing a valid AST.
Small fix in r207771.
mentioned in issue llvm/llvm-bugzilla-archive#13707
No branches or pull requests
Extended Description
cl.exe accepts this program:
template
void _DebugHeapDelete(_Ty *_Ptr)
{
if (_Ptr != 0)
{
_Ptr->~_Ty();
}
}
void f() {
int* a = 0;
_DebugHeapDelete((void*)a);
}
clang rejects it (it's accepted without the void* cast). This appears in the xdebug header of msvc's library.
(Workaround: Don't do debug builds.)
The text was updated successfully, but these errors were encountered: