]> gcc.gnu.org Git - gcc.git/commit
re PR c++/775 (2.97 error declaring nested class a friend)
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 2 Jan 2002 11:37:00 +0000 (11:37 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 2 Jan 2002 11:37:00 +0000 (11:37 +0000)
commitd46a33b3223caf37f764ce4c26d9e293b9f26fff
treed70dbbf96d384cc554f4062e493f143a44a5e130
parent4542128ef1545dc28cf4e3a2e4232f6058267c1c
re PR c++/775 (2.97 error declaring nested class a friend)

cp:
PR c++/775
* cp-tree.h (handle_class_head): Adjust prototype.
* decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
parameters. Use for all class heads.
* parse.y (named_class_head_sans_basetype, named_class_head,
named_complex_class_head_sans_basetype,
named_class_head_sans_basetype_defn,
unnamed_class_head): Remove.
(class_head, class_head_apparent_template): Recognize class heads
(class_head_decl, class_head_defn): New reductions. Process class
heads.
(structsp): Adjust class definition and class declaration
reductions.
(maybe_base_class_list): Give diagnostic on empty list.
testsuite:
* g++.dg/template/friend2.C: New test.
* g++.old-deja/g++/brendan/crash8.C: Adjust location of error.

From-SVN: r48466
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/parse.y
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend3.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.brendan/crash8.C
This page took 0.062839 seconds and 5 git commands to generate.