re PR c++/27100 (ICE with multiple friend declarations)
authorPatrick Palka <ppalka@gcc.gnu.org>
Fri, 3 Jun 2016 20:42:08 +0000 (20:42 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Fri, 3 Jun 2016 20:42:08 +0000 (20:42 +0000)
commitc8572dd688e71e4e8376b270aed5d4f6217d9b54
tree512c9c2ecc0a93b425170e5c085e92c022006d59
parent1c7733a760d7000a9c947d13b8c515d249c74fc8
re PR c++/27100 (ICE with multiple friend declarations)

Fix PR c++/27100

gcc/cp/ChangeLog:

PR c++/27100
* decl.c (duplicate_decls): Properly copy the
DECL_PENDING_INLINE_P, DECL_PENDING_INLINE_INFO and
DECL_SAVED_FUNCTION_DATA fields from OLDDECL to NEWDECL.

gcc/testsuite/ChangeLog:

PR c++/27100
* g++.dg/other/friend6.C: New test.

From-SVN: r237078
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/friend6.C [new file with mode: 0644]