re PR c++/84348 (ICE with invalid friend declaration)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 19 Feb 2018 08:49:30 +0000 (08:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 19 Feb 2018 08:49:30 +0000 (08:49 +0000)
commit50dbbe535766405327cdf4cf6712a633a87966e0
treebe284e3b84238050a116cefb55ad4f8b4ac14894
parent9f88a07b85a2922ab1d7ae8ec02b18aa739af32a
re PR c++/84348 (ICE with invalid friend declaration)

/cp
2018-02-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84348
* decl.c (grokdeclarator): Early return error_mark_node upon
ill-formed friend declaration.

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

PR c++/84348
* g++.dg/cpp0x/auto50.C: New.
* g++.dg/parse/friend12.C: Adjust.

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