[Bug c++/80259] [6/7 Regression] ICE deleting friend function

2017-12-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80259

--- Comment #7 from Jakub Jelinek  ---
Author: jakub
Date: Fri Dec 15 22:10:40 2017
New Revision: 255723

URL: https://gcc.gnu.org/viewcvs?rev=255723=gcc=rev
Log:
Backported from mainline
2017-12-06  Jakub Jelinek  

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

[Bug c++/80259] [6/7 Regression] ICE deleting friend function

2017-12-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80259

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[6/7/8 Regression] ICE  |[6/7 Regression] ICE
   |deleting friend function|deleting friend function

--- Comment #6 from Jakub Jelinek  ---
Fixed on the trunk so far.