re PR c++/19891 (Covariant returns are broken)
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 14 Feb 2005 09:36:35 +0000 (09:36 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 14 Feb 2005 09:36:35 +0000 (09:36 +0000)
commit12a669d1e1b3b14f15bf512479c664130f52c89d
tree489402919c97378f6127944f463d865fdc1383ad
parent90bb1c1f1511ccb29fc3c23fe2ab871c24c6b040
re PR c++/19891 (Covariant returns are broken)

cp:
PR c++/19891
* class.c (build_simple_base_path): Build the component_ref
directly.
(update_vtable_entry_for_fn): Walk the covariant's binfo chain
rather than using lookup_base.
* search.c (dfs_walk_once): Add non-recursive assert check.
* typeck.c (build_class_member_access_expr): It is possible for
the member type to be both const and volatile.
testsuite:
PR c++/19891
* g++.dg/abi/covariant4.C: New.

From-SVN: r95005
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/search.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/covariant4.C [new file with mode: 0644]