http://llvm.org/bugs/show_bug.cgi?id=11791
Bug #: 11791
Summary: Support pseudodestructors on void in microsoft mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
cl.exe accepts this program:
template<class _Ty>
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.)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs