PR c++/61490 - qualified-id in friend function definition.
authorMarek Polacek <polacek@redhat.com>
Fri, 21 Jun 2019 20:43:47 +0000 (20:43 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 21 Jun 2019 20:43:47 +0000 (20:43 +0000)
commit32833537fcfcc320c8a149641b12d49d23e94609
treee89d6f1de38914ef1fd534195a78dfb0efb868a3
parentfc39d4e18b473b923571614bfd6aed0707f8ac56
PR c++/61490 - qualified-id in friend function definition.

* decl.c (grokdeclarator): Diagnose qualified-id in friend function
definition.  Improve location for diagnostics of friend functions.

* g++.dg/diagnostic/friend2.C: New test.
* g++.dg/diagnostic/friend3.C: New test.

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