re PR c++/22293 (ICE declaring destructor as friend)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Tue, 18 Oct 2005 16:20:55 +0000 (16:20 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Tue, 18 Oct 2005 16:20:55 +0000 (16:20 +0000)
commit6d2989e11752934162a82ed4718298f3f8a47bfe
treee0d29138a0ec4f4daa1df0f1faa9074d14b7041d
parent685e39c289c014c395367c0146e51225e0521b31
re PR c++/22293 (ICE declaring destructor as friend)

PR c++/22293
* decl.c (grokdeclarator): Reject unqualified destructors in
friend declarations.

* g++.dg/other/friend3.C: New test.

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