[Bug c++/27808] [4.2 regression] ICE with invalid friend declaration

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed May 31 01:18:00 GMT 2006



------- Comment #1 from mmitchel at gcc dot gnu dot org  2006-05-31 01:18 -------
Subject: Bug 27808

Author: mmitchel
Date: Wed May 31 01:18:24 2006
New Revision: 114259

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114259
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/parse/friend6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27808



More information about the Gcc-bugs mailing list