------- Comment #1 from truedfx at gentoo dot org 2009-12-17 20:51 ------- And here's the generated assembly:
.file "test.cc" .text .align 2 .globl _ZN1A1fEv .type _ZN1A1fEv, @function _ZN1A1fEv: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, %rdi call _ZN1AC1Ev *INTERNAL* leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size _ZN1A1fEv, .-_ZN1A1fEv .ident "GCC: (Gentoo 4.5.0_alpha20091210) 4.5.0-alpha20091210 20091210 (experimental)" .section .note.GNU-stack,"",@progbits -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42415