revert: [multiple changes]
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 19 Jul 2018 16:58:06 +0000 (16:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 19 Jul 2018 16:58:06 +0000 (16:58 +0000)
commit0d21482100aebb2b53948af330e9f3eb3fe1d9a7
tree23aca1331a0ed78ea26e4ede2c6e4f927e709045
parent5170e47ebd80005787c610e6c08a23526906e985
revert: [multiple changes]

2018-07-19  Paolo Carlini  <paolo.carlini@oracle.com>

Revert fix for c++/59480 (and testsuite followup)

/testsuite
2018-07-19  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.old-deja/g++.mike/p784.C: Add -fpermissive.

/cp
2019-07-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59480, DR 136
* decl.c (check_no_redeclaration_friend_default_args): New.
(duplicate_decls): Use the latter; also check that a friend
declaration specifying default arguments is a definition.

/testsuite
2019-07-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59480, DR 136
* g++.dg/other/friend8.C: New.
* g++.dg/other/friend9.C: Likewise.
* g++.dg/other/friend10.C: Likewise.
* g++.dg/other/friend11.C: Likewise.
* g++.dg/other/friend12.C: Likewise.
* g++.dg/parse/defarg4.C: Compile with -fpermissive -w.
* g++.dg/parse/defarg8.C: Likewise.

From-SVN: r262883
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/friend10.C [deleted file]
gcc/testsuite/g++.dg/other/friend11.C [deleted file]
gcc/testsuite/g++.dg/other/friend12.C [deleted file]
gcc/testsuite/g++.dg/other/friend8.C [deleted file]
gcc/testsuite/g++.dg/other/friend9.C [deleted file]
gcc/testsuite/g++.dg/parse/defarg4.C
gcc/testsuite/g++.dg/parse/defarg8.C
gcc/testsuite/g++.old-deja/g++.mike/p784.C