re PR c++/27808 (ICE with invalid friend declaration)
authorMark Mitchell <mark@codesourcery.com>
Wed, 31 May 2006 01:18:24 +0000 (01:18 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 31 May 2006 01:18:24 +0000 (01:18 +0000)
commitc7baf9e9fbf7490574e20a9ed05dd6437161e1f3
treeb3e908d52e8af5c738b5428ac3c6255b8efcebeb
parent7edd9592be510d1f0c46ca7060639f167d65abb1
re PR c++/27808 (ICE with invalid friend declaration)

PR c++/27808
* parser.c (cp_parser_decl_specifier_seq): Issue errors about
"friend" specifiers that do not appear in class scopes.
PR c++/27808
* g++.dg/parse/friend6.C: New test.

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