diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2002-01-02 11:37:00 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2002-01-02 11:37:00 +0000 |
commit | d46a33b3223caf37f764ce4c26d9e293b9f26fff (patch) | |
tree | d70dbbf96d384cc554f4062e493f143a44a5e130 /libstdc++-v3/include/ext/ropeimpl.h | |
parent | 4542128ef1545dc28cf4e3a2e4232f6058267c1c (diff) | |
download | gcc-d46a33b3223caf37f764ce4c26d9e293b9f26fff.zip gcc-d46a33b3223caf37f764ce4c26d9e293b9f26fff.tar.gz gcc-d46a33b3223caf37f764ce4c26d9e293b9f26fff.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3/include/ext/ropeimpl.h')
0 files changed, 0 insertions, 0 deletions