re PR c++/65879 (Bogus linkage errors for member class of anonymous class)
authorJason Merrill <jason@redhat.com>
Tue, 23 Jun 2015 14:08:30 +0000 (10:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 23 Jun 2015 14:08:30 +0000 (10:08 -0400)
commitd88511aec7338a93753fbba2c97d18539250c491
treeb64a9cc3052b051948ce2c2171bb946a4ac81d64
parent115ef7c52e7cae6101df2f062b4650c82e50072d
re PR c++/65879 (Bogus linkage errors for member class of anonymous class)

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.

From-SVN: r224844
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/tree.c
gcc/testsuite/g++.dg/abi/anon2.C
gcc/testsuite/g++.dg/other/anon7.C [new file with mode: 0644]