https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80259
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 15 22:10:40 2017 New Revision: 255723 URL: https://gcc.gnu.org/viewcvs?rev=255723&root=gcc&view=rev Log: Backported from mainline 2017-12-06 Jakub Jelinek <ja...@redhat.com> PR c++/80259 * decl2.c (grokfield): Diagnose = delete redefinition of a friend. * g++.dg/cpp0x/pr80259.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/pr80259.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/decl2.c branches/gcc-7-branch/gcc/testsuite/ChangeLog