[Bug c++/65879] [4.9/5/6 Regression] Bogus linkage errors for member class of anonymous class

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 23 14:09:00 GMT 2015


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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jun 23 14:08:30 2015
New Revision: 224844

URL: https://gcc.gnu.org/viewcvs?rev=224844&root=gcc&view=rev
Log:
        PR c++/65879
        * decl.c (grokfndecl): Check the linkage of ctype, not just
        TYPE_ANONYMOUS_P.
        * tree.c (no_linkage_check): Skip the 'this' pointer.

Added:
    trunk/gcc/testsuite/g++.dg/other/anon7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/g++.dg/abi/anon2.C



More information about the Gcc-bugs mailing list