re PR c++/58650 ([c++11] ICE with invalid friend declaration)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 16 Dec 2014 23:28:31 +0000 (23:28 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 16 Dec 2014 23:28:31 +0000 (23:28 +0000)
commit0007ff03b088aadc9623e17df257a3e2792d115e
tree9c1028159cc8fd9a8051ef7bd204a864eb61688e
parente0d475db10f8976060a964517a64cd7b4508cefa
re PR c++/58650 ([c++11] ICE with invalid friend declaration)

/cp
2014-12-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58650
* parser.c (cp_parser_member_declaration): Fix error recovery for
initialized non-static data member declared friend.

/testsuite
2014-12-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58650
* g++.dg/parse/friend12.C: New.

From-SVN: r218801
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/friend12.C [new file with mode: 0644]