This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13725] Duplicate constructor/destructor/
- From: "rmerkert at alphatech dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2004 00:53:03 -0000
- Subject: [Bug c++/13725] Duplicate constructor/destructor/
- References: <20040118004852.13725.rmerkert@alphatech.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rmerkert at alphatech dot com 2004-01-18 00:53 -------
OOPS - there's a cut and paste error (not that it really changes anything):
The program should be:
struct A {
A();
A(const A&);
A(int);
};
A::A(){}
A::A(const A&) {}
A::A(int) {}
and the output it produces is:
.file "test.cpp"
.text
.align 2
.globl _ZN1AC1Ei
.type _ZN1AC1Ei, @function
_ZN1AC1Ei:
.LFB10:
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
popl %ebp
ret
.LFE10:
.size _ZN1AC1Ei, .-_ZN1AC1Ei
.align 2
.globl _ZN1AC2Ei
.type _ZN1AC2Ei, @function
_ZN1AC2Ei:
.LFB9:
pushl %ebp
.LCFI2:
movl %esp, %ebp
.LCFI3:
popl %ebp
ret
.LFE9:
.size _ZN1AC2Ei, .-_ZN1AC2Ei
.align 2
.globl _ZN1AC1ERKS_
.type _ZN1AC1ERKS_, @function
_ZN1AC1ERKS_:
.LFB7:
pushl %ebp
.LCFI4:
movl %esp, %ebp
.LCFI5:
popl %ebp
ret
.LFE7:
.size _ZN1AC1ERKS_, .-_ZN1AC1ERKS_
.align 2
.globl _ZN1AC2ERKS_
.type _ZN1AC2ERKS_, @function
_ZN1AC2ERKS_:
.LFB6:
pushl %ebp
.LCFI6:
movl %esp, %ebp
.LCFI7:
popl %ebp
ret
.LFE6:
.size _ZN1AC2ERKS_, .-_ZN1AC2ERKS_
.align 2
.globl _ZN1AC1Ev
.type _ZN1AC1Ev, @function
_ZN1AC1Ev:
.LFB4:
pushl %ebp
.LCFI8:
movl %esp, %ebp
.LCFI9:
popl %ebp
ret
.LFE4:
.size _ZN1AC1Ev, .-_ZN1AC1Ev
.align 2
.globl _ZN1AC2Ev
.type _ZN1AC2Ev, @function
_ZN1AC2Ev:
.LFB3:
pushl %ebp
.LCFI10:
movl %esp, %ebp
.LCFI11:
popl %ebp
ret
.LFE3:
.size _ZN1AC2Ev, .-_ZN1AC2Ev
.section .note.GNU-stack,"",@progbits
.ident "GCC: (GNU) 3.4.0 20040107 (experimental)"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13725