[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


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=425

           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
                    pt011.htm#Index2237
        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:
http://burks.brighton.ac.uk/burks/language/cpp/ticpp/chapt011.htm#Index2237

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
'/home/srg/jcarlyle/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../libstdc++.so'
(-lstdc++)

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
http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html,



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