re PR c++/84691 (internal compiler error: in poplevel_class, at cp/name-lookup.c...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 27 Apr 2018 16:56:55 +0000 (16:56 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 27 Apr 2018 16:56:55 +0000 (16:56 +0000)
commita6e34898d1e8920cc68d2089e45434c9703a77d0
treefe98a04a49b515de108cb210e8fe690dcb838ace
parent6d0e87b25ee21493d4f47bb39aee3e2d33cb08d9
re PR c++/84691 (internal compiler error: in poplevel_class, at cp/name-lookup.c:4430)

/cp
2018-04-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84691
* decl.c (grokdeclarator): Clear friendp upon definition in local
class definition error.

/testsuite
2018-04-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84691
* g++.dg/cpp0x/friend3.C: New.

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