[LLVMbugs] [Bug 7810] New: Clang rejects const-qualified parameter type for operator delete

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 4 09:12:16 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7810

           Summary: Clang rejects const-qualified parameter type for
                    operator delete
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: llvmbugs at contacts.eelis.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Consider:

  void operator delete(void* const);

GCC 4.5.0 and Comeau 4.3.10.1 both accept this code, but Clang (r110197)
complains:

  error: 'operator delete' takes type 'void *' as first parameter

-- 
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