[LLVMbugs] [Bug 425] NEW: Unable to globally override new and delete operators in C++ programs

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 18 15:41:28 PDT 2004


           Summary: Unable to globally override new and delete operators in
                    C++ programs
           Product: Runtime Libraries
           Version: unspecified
          Platform: PC
               URL: http://burks.brighton.ac.uk/burks/language/cpp/ticpp/cha
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jcarlyle at uiuc.edu
                CC: criswell at uiuc.edu

I've encountered a problem in compiling a program that globally overrides the
new and delete operators.

The short program listed at the URL below reproduces the problem:

The program at the above URL compiles fine with the standard g++ compiler;
however, under llvm-g++ I received the following error:

jcarlyle|srga|~/test|[3]% llvm-g++ c13.cc
gccld: Function 'void (sbyte *)':"_ZdlPv" - Function is already defined!: error
linking in bytecode file

Procing an object file with llvm-nm confirms that _ZdlPv is the delete operator.

I'm using versions of both LLVM and the CFrontend that were checked out from the
CVS repository today.

I've compiled LLVM and the CFrontend using the instructions from

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list