[LLVMbugs] [Bug 11791] New: Support pseudodestructors on void in microsoft mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 17 21:37:41 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list