aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@gcc.gnu.org>2005-10-18 12:30:32 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2005-10-18 12:30:32 +0000
commitb77fe7b45f5a162d5d0f3cc64044281220076c04 (patch)
tree8c6ffe176818c794b78be35002d3b48a05a4cf5d /gcc/cp/cp-tree.h
parent6d7e9a3582b6ce807b1d380c757cf50e5f41ec65 (diff)
downloadgcc-b77fe7b45f5a162d5d0f3cc64044281220076c04.zip
gcc-b77fe7b45f5a162d5d0f3cc64044281220076c04.tar.gz
gcc-b77fe7b45f5a162d5d0f3cc64044281220076c04.tar.bz2
re PR c++/22604 (ICE after invalid covariant return)
cp: PR c++/22604 * class.c (update_vtable_entry_for_fn): Don't process invalid covariant overriders. PR c++/23118 * cp-tree.h (add_method): Add return value. * class.c (add_method): Return success indicator. * semantics.c (finish_member_declaration): Don't add an invalid method to the method list. testsuite: PR c++/23118 * g++.dg/overload/error2.C: New. PR c++/22604 * g++.dg/inherit/covariant14.C: New. From-SVN: r105549
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index b63d08e..97cc064 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -3709,7 +3709,7 @@ extern tree build_vfn_ref (tree, tree);
extern tree get_vtable_decl (tree, int);
extern void resort_type_method_vec (void *, void *,
gt_pointer_operator, void *);
-extern void add_method (tree, tree, tree);
+extern bool add_method (tree, tree, tree);
extern int currently_open_class (tree);
extern tree currently_open_derived_class (tree);
extern tree finish_struct (tree, tree);