This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/7221] wrong linkage of typedef-named classes


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7221

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
This works correctly in recent GCC versions.  Resolving as fixed.

$ cat t.C && gcc -S -Wall -Wextra -Wpedantic -o/dev/stdout t.C
typedef struct {
  void foo ();
} S;

void S::foo () { }
        .file   "t.C"
        .text
        .align 2
        .globl  _ZN1S3fooEv
        .type   _ZN1S3fooEv, @function
_ZN1S3fooEv:
.LFB0:
        .cfi_startproc
        pushq   %rbp
        .cfi_def_cfa_offset 16
        .cfi_offset 6, -16
        movq    %rsp, %rbp
        .cfi_def_cfa_register 6
        movq    %rdi, -8(%rbp)
        nop
        popq    %rbp
        .cfi_def_cfa 7, 8
        ret
        .cfi_endproc
.LFE0:
        .size   _ZN1S3fooEv, .-_ZN1S3fooEv
        .ident  "GCC: (GNU) 7.0.1 20170223 (experimental)"
        .section        .note.GNU-stack,"",@progbits

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]