[LLVMbugs] [Bug 3164] New: two constructors generated.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Dec 3 15:23:47 PST 2008


           Summary: two constructors generated.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: akasim at swri.org
                CC: llvmbugs at cs.uiuc.edu

Note sure if this is right but I see that for each c++ constructor, I get two
corresponding identical functions. Example
class foo{
I get these two functions:
define void @_ZN3tooC1Ev(%struct.foo* %this);
define void @_ZN3tooC2Ev(%struct.foo* %this);

the bodies of these two functions are identical. Is this a bug ?

Also, is there any documentation on how the function names are  generated? I
see that its always _ZN3, followed by struct name, followed by C (for
constructor), followed by 1 or 2, then E, and then argument type infos. 
But I would like to see a document where the naming scheme is officially
explained. Thanks.

-Arif Kasim.

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